Struct ProfileSettings
#[non_exhaustive]pub struct ProfileSettings {
pub name: Option<Utf8Bytes>,
pub pdp_type: Option<PdpType>,
pub apn: Option<Utf8Bytes>,
pub username: Option<Utf8Bytes>,
pub password: Option<Utf8Bytes>,
pub auth_preference: Option<AuthPreference>,
}Expand description
Settings of a profile.
Returned by GetProfileSettings. The modem only fills the fields that it
knows. Debug hides the password.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: Option<Utf8Bytes>Name of the profile.
pdp_type: Option<PdpType>Packet data protocol.
apn: Option<Utf8Bytes>Access point name.
username: Option<Utf8Bytes>User name for authentication.
password: Option<Utf8Bytes>Password for authentication.
auth_preference: Option<AuthPreference>Allowed authentication protocols.
Trait Implementations§
§impl Clone for ProfileSettings
impl Clone for ProfileSettings
§fn clone(&self) -> ProfileSettings
fn clone(&self) -> ProfileSettings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ProfileSettings
impl Debug for ProfileSettings
§impl Default for ProfileSettings
impl Default for ProfileSettings
§fn default() -> ProfileSettings
fn default() -> ProfileSettings
Returns the “default value” for a type. Read more
impl Eq for ProfileSettings
§impl PartialEq for ProfileSettings
impl PartialEq for ProfileSettings
impl StructuralPartialEq for ProfileSettings
§impl TryFrom<&Message> for ProfileSettings
impl TryFrom<&Message> for ProfileSettings
§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
§fn try_from(message: &Message) -> Result<Self, DecodeError>
fn try_from(message: &Message) -> Result<Self, DecodeError>
Performs the conversion.
Auto Trait Implementations§
impl !Freeze for ProfileSettings
impl RefUnwindSafe for ProfileSettings
impl Send for ProfileSettings
impl Sync for ProfileSettings
impl Unpin for ProfileSettings
impl UnsafeUnpin for ProfileSettings
impl UnwindSafe for ProfileSettings
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