pub struct DeveloperGoogleOAuthResponse {
pub user: Option<Box<User>>,
pub token: String,
}Fields§
§user: Option<Box<User>>§token: StringJWT authentication token. Most Nile operations the caller to pass a valid token in Authorization HTTP header using Bearer schema
Implementations§
Source§impl DeveloperGoogleOAuthResponse
impl DeveloperGoogleOAuthResponse
pub fn new(token: String) -> DeveloperGoogleOAuthResponse
Trait Implementations§
Source§impl Clone for DeveloperGoogleOAuthResponse
impl Clone for DeveloperGoogleOAuthResponse
Source§fn clone(&self) -> DeveloperGoogleOAuthResponse
fn clone(&self) -> DeveloperGoogleOAuthResponse
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 DeveloperGoogleOAuthResponse
impl Debug for DeveloperGoogleOAuthResponse
Source§impl Default for DeveloperGoogleOAuthResponse
impl Default for DeveloperGoogleOAuthResponse
Source§fn default() -> DeveloperGoogleOAuthResponse
fn default() -> DeveloperGoogleOAuthResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeveloperGoogleOAuthResponse
impl<'de> Deserialize<'de> for DeveloperGoogleOAuthResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DeveloperGoogleOAuthResponse
impl PartialEq for DeveloperGoogleOAuthResponse
Source§fn eq(&self, other: &DeveloperGoogleOAuthResponse) -> bool
fn eq(&self, other: &DeveloperGoogleOAuthResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DeveloperGoogleOAuthResponse
Auto Trait Implementations§
impl Freeze for DeveloperGoogleOAuthResponse
impl RefUnwindSafe for DeveloperGoogleOAuthResponse
impl Send for DeveloperGoogleOAuthResponse
impl Sync for DeveloperGoogleOAuthResponse
impl Unpin for DeveloperGoogleOAuthResponse
impl UnwindSafe for DeveloperGoogleOAuthResponse
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