Struct yup_oauth2::authorized_user::AuthorizedUserSecret
source · pub struct AuthorizedUserSecret {
pub client_id: String,
pub client_secret: String,
pub refresh_token: String,
pub key_type: String,
}
Expand description
JSON schema of authorized user secret. You can obtain it by
running on the client: gcloud auth application-default login
.
You can use helpers::read_authorized_user_secret()
to read a JSON file
into a AuthorizedUserSecret
.
Fields§
§client_id: String
client_id
client_secret: String
client_secret
refresh_token: String
refresh_token
key_type: String
key_type
Trait Implementations§
source§impl Clone for AuthorizedUserSecret
impl Clone for AuthorizedUserSecret
source§fn clone(&self) -> AuthorizedUserSecret
fn clone(&self) -> AuthorizedUserSecret
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 AuthorizedUserSecret
impl Debug for AuthorizedUserSecret
source§impl<'de> Deserialize<'de> for AuthorizedUserSecret
impl<'de> Deserialize<'de> for AuthorizedUserSecret
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
Auto Trait Implementations§
impl Freeze for AuthorizedUserSecret
impl RefUnwindSafe for AuthorizedUserSecret
impl Send for AuthorizedUserSecret
impl Sync for AuthorizedUserSecret
impl Unpin for AuthorizedUserSecret
impl UnwindSafe for AuthorizedUserSecret
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)