pub struct GworkspaceConfig {
pub client_id: String,
pub client_secret: String,
pub refresh_token: Option<String>,
pub service_account_key_json: Option<String>,
}Expand description
One authorised account. Every field here is durable secret material, which
is why ConfigRoleStore makes config write-only: a read reports existence
and nothing else.
Fields§
§client_id: StringOAuth client credentials from the Google Cloud console. Required for
refresh_token mode, unused by domain-wide delegation.
client_secret: String§refresh_token: Option<String>The long-lived half, obtained once through an interactive consent flow. This is the secret consumers must never see.
service_account_key_json: Option<String>Service-account key JSON, for domain-wide delegation only.
Trait Implementations§
Source§impl Clone for GworkspaceConfig
impl Clone for GworkspaceConfig
Source§impl Debug for GworkspaceConfig
impl Debug for GworkspaceConfig
Source§impl<'de> Deserialize<'de> for GworkspaceConfig
impl<'de> Deserialize<'de> for GworkspaceConfig
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 GworkspaceConfig
impl RefUnwindSafe for GworkspaceConfig
impl Send for GworkspaceConfig
impl Sync for GworkspaceConfig
impl Unpin for GworkspaceConfig
impl UnsafeUnpin for GworkspaceConfig
impl UnwindSafe for GworkspaceConfig
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