pub struct AuthCredential {
pub provider_id: String,
pub sign_in_method: String,
pub token_response: Value,
}Fields§
§provider_id: String§sign_in_method: String§token_response: ValueImplementations§
Source§impl AuthCredential
impl AuthCredential
Sourcepub fn to_json(&self) -> Value
pub fn to_json(&self) -> Value
Serializes the credential into a JSON value matching the Firebase JS SDK shape.
Sourcepub fn to_json_string(&self) -> AuthResult<String>
pub fn to_json_string(&self) -> AuthResult<String>
Serializes the credential into a JSON string.
Sourcepub fn from_json(value: Value) -> AuthResult<Self>
pub fn from_json(value: Value) -> AuthResult<Self>
Reconstructs a credential from a JSON value previously produced via [to_json].
Sourcepub fn from_json_str(data: &str) -> AuthResult<Self>
pub fn from_json_str(data: &str) -> AuthResult<Self>
Reconstructs a credential from its JSON string representation.
Trait Implementations§
Source§impl Clone for AuthCredential
impl Clone for AuthCredential
Source§fn clone(&self) -> AuthCredential
fn clone(&self) -> AuthCredential
Returns a duplicate 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 AuthCredential
impl Debug for AuthCredential
Source§impl From<OAuthCredential> for AuthCredential
impl From<OAuthCredential> for AuthCredential
Source§fn from(value: OAuthCredential) -> Self
fn from(value: OAuthCredential) -> Self
Converts to this type from the input type.
Source§impl TryFrom<AuthCredential> for OAuthCredential
impl TryFrom<AuthCredential> for OAuthCredential
Auto Trait Implementations§
impl Freeze for AuthCredential
impl RefUnwindSafe for AuthCredential
impl Send for AuthCredential
impl Sync for AuthCredential
impl Unpin for AuthCredential
impl UnwindSafe for AuthCredential
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