Struct Profile
pub struct Profile {
pub name: Option<ProfileName>,
pub pdp_type: Option<PdpType>,
pub apn: Option<Apn>,
pub username: Option<Username>,
pub password: Option<Password>,
pub auth_preference: Option<AuthPreference>,
}Expand description
Settings of a 3GPP profile for CreateProfile and
ModifyProfileSettings.
Every field is optional. A request only sends the fields that are set.
§Example
use ql_wds::{Apn, AuthPreference, PdpType, Profile};
let profile = Profile {
apn: Some(Apn::new("internet.example")?),
pdp_type: Some(PdpType::IPV4V6),
auth_preference: Some(AuthPreference::PAP | AuthPreference::CHAP),
..Profile::default()
};Fields§
§name: Option<ProfileName>Name of the profile.
pdp_type: Option<PdpType>Packet data protocol.
apn: Option<Apn>Access point name.
username: Option<Username>User name for authentication.
password: Option<Password>Password for authentication.
auth_preference: Option<AuthPreference>Allowed authentication protocols.
Implementations§
Trait Implementations§
impl Eq for Profile
impl StructuralPartialEq for Profile
Auto Trait Implementations§
impl !Freeze for Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnsafeUnpin for Profile
impl UnwindSafe for Profile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more