Struct ProviderStatus
pub struct ProviderStatus {
pub key: String,
pub name: String,
pub user_name: Option<String>,
pub logged_in: bool,
pub bg_color: String,
pub account_id: String,
pub scopes: Vec<i32>,
}Fields§
§key: String§name: String§user_name: Option<String>§logged_in: bool§bg_color: String§account_id: String§scopes: Vec<i32>Implementations§
§impl ProviderStatus
impl ProviderStatus
pub fn user_name(&self) -> &str
pub fn user_name(&self) -> &str
Returns the value of user_name, or the default value if user_name is unset.
pub fn scopes(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<ExtensionProviderScope>>
pub fn scopes( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<ExtensionProviderScope>>
Returns an iterator which yields the valid enum values contained in scopes.
pub fn push_scopes(&mut self, value: ExtensionProviderScope)
pub fn push_scopes(&mut self, value: ExtensionProviderScope)
Appends the provided enum value to scopes.
Trait Implementations§
§impl Clone for ProviderStatus
impl Clone for ProviderStatus
§fn clone(&self) -> ProviderStatus
fn clone(&self) -> ProviderStatus
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ProviderStatus
impl Debug for ProviderStatus
§impl Default for ProviderStatus
impl Default for ProviderStatus
§fn default() -> ProviderStatus
fn default() -> ProviderStatus
Returns the “default value” for a type. Read more
§impl Message for ProviderStatus
impl Message for ProviderStatus
§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read more§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.§impl PartialEq for ProviderStatus
impl PartialEq for ProviderStatus
impl StructuralPartialEq for ProviderStatus
Auto Trait Implementations§
impl Freeze for ProviderStatus
impl RefUnwindSafe for ProviderStatus
impl Send for ProviderStatus
impl Sync for ProviderStatus
impl Unpin for ProviderStatus
impl UnwindSafe for ProviderStatus
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)