pub struct GoogleSheetsOAuth2AuthorizationCredential {
pub provider: ProviderTrue,
pub authorization_id: String,
pub id: String,
pub org_id: String,
pub created_at: String,
pub updated_at: String,
pub name: Option<String>,
}Fields§
§provider: ProviderTrueThe authorization ID for the OAuth2 authorization
id: StringThis is the unique identifier for the credential.
org_id: StringThis is the unique identifier for the org that this credential belongs to.
created_at: StringThis is the ISO 8601 date-time string of when the credential was created.
updated_at: StringThis is the ISO 8601 date-time string of when the assistant was last updated.
name: Option<String>This is the name of credential. This is just for your reference.
Implementations§
Source§impl GoogleSheetsOAuth2AuthorizationCredential
impl GoogleSheetsOAuth2AuthorizationCredential
pub fn new( provider: ProviderTrue, authorization_id: String, id: String, org_id: String, created_at: String, updated_at: String, ) -> GoogleSheetsOAuth2AuthorizationCredential
Trait Implementations§
Source§impl Clone for GoogleSheetsOAuth2AuthorizationCredential
impl Clone for GoogleSheetsOAuth2AuthorizationCredential
Source§fn clone(&self) -> GoogleSheetsOAuth2AuthorizationCredential
fn clone(&self) -> GoogleSheetsOAuth2AuthorizationCredential
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 Default for GoogleSheetsOAuth2AuthorizationCredential
impl Default for GoogleSheetsOAuth2AuthorizationCredential
Source§fn default() -> GoogleSheetsOAuth2AuthorizationCredential
fn default() -> GoogleSheetsOAuth2AuthorizationCredential
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GoogleSheetsOAuth2AuthorizationCredential
impl<'de> Deserialize<'de> for GoogleSheetsOAuth2AuthorizationCredential
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 GoogleSheetsOAuth2AuthorizationCredential
impl PartialEq for GoogleSheetsOAuth2AuthorizationCredential
Source§fn eq(&self, other: &GoogleSheetsOAuth2AuthorizationCredential) -> bool
fn eq(&self, other: &GoogleSheetsOAuth2AuthorizationCredential) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GoogleSheetsOAuth2AuthorizationCredential
Auto Trait Implementations§
impl Freeze for GoogleSheetsOAuth2AuthorizationCredential
impl RefUnwindSafe for GoogleSheetsOAuth2AuthorizationCredential
impl Send for GoogleSheetsOAuth2AuthorizationCredential
impl Sync for GoogleSheetsOAuth2AuthorizationCredential
impl Unpin for GoogleSheetsOAuth2AuthorizationCredential
impl UnwindSafe for GoogleSheetsOAuth2AuthorizationCredential
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