pub struct AuthEventData {
pub uid: String,
pub email: String,
pub email_verified: bool,
pub display_name: String,
pub photo_url: String,
pub disabled: bool,
pub metadata: Option<UserMetadata>,
pub provider_data: Vec<UserInfo>,
pub phone_number: String,
pub custom_claims: Option<Struct>,
}Expand description
The data within all Firebase Auth events.
Fields§
§uid: StringThe user identifier in the Firebase app.
email: StringThe user’s primary email, if set.
email_verified: boolWhether or not the user’s primary email is verified.
display_name: StringThe user’s display name.
photo_url: StringThe user’s photo URL.
disabled: boolWhether the user is disabled.
metadata: Option<UserMetadata>Additional metadata about the user.
provider_data: Vec<UserInfo>User’s info at the providers
phone_number: StringThe user’s phone number.
custom_claims: Option<Struct>User’s custom claims, typically used to define user roles and propagated to an authenticated user’s ID token.
Trait Implementations§
Source§impl Clone for AuthEventData
impl Clone for AuthEventData
Source§fn clone(&self) -> AuthEventData
fn clone(&self) -> AuthEventData
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthEventData
impl Debug for AuthEventData
Source§impl Default for AuthEventData
impl Default for AuthEventData
Source§impl Message for AuthEventData
impl Message for AuthEventData
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§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
Source§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.
Source§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
Source§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.
Source§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
Source§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.
Source§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 moreSource§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.Source§impl PartialEq for AuthEventData
impl PartialEq for AuthEventData
impl StructuralPartialEq for AuthEventData
Auto Trait Implementations§
impl Freeze for AuthEventData
impl RefUnwindSafe for AuthEventData
impl Send for AuthEventData
impl Sync for AuthEventData
impl Unpin for AuthEventData
impl UnwindSafe for AuthEventData
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