pub struct SlackOAuth2AuthorizationCredential {
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: ProviderTrue
The authorization ID for the OAuth2 authorization
id: String
This is the unique identifier for the credential.
org_id: String
This is the unique identifier for the org that this credential belongs to.
created_at: String
This is the ISO 8601 date-time string of when the credential was created.
updated_at: String
This 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 SlackOAuth2AuthorizationCredential
impl SlackOAuth2AuthorizationCredential
pub fn new( provider: ProviderTrue, authorization_id: String, id: String, org_id: String, created_at: String, updated_at: String, ) -> SlackOAuth2AuthorizationCredential
Trait Implementations§
Source§impl Clone for SlackOAuth2AuthorizationCredential
impl Clone for SlackOAuth2AuthorizationCredential
Source§fn clone(&self) -> SlackOAuth2AuthorizationCredential
fn clone(&self) -> SlackOAuth2AuthorizationCredential
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for SlackOAuth2AuthorizationCredential
impl Default for SlackOAuth2AuthorizationCredential
Source§fn default() -> SlackOAuth2AuthorizationCredential
fn default() -> SlackOAuth2AuthorizationCredential
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SlackOAuth2AuthorizationCredential
impl<'de> Deserialize<'de> for SlackOAuth2AuthorizationCredential
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 SlackOAuth2AuthorizationCredential
impl PartialEq for SlackOAuth2AuthorizationCredential
Source§fn eq(&self, other: &SlackOAuth2AuthorizationCredential) -> bool
fn eq(&self, other: &SlackOAuth2AuthorizationCredential) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for SlackOAuth2AuthorizationCredential
Auto Trait Implementations§
impl Freeze for SlackOAuth2AuthorizationCredential
impl RefUnwindSafe for SlackOAuth2AuthorizationCredential
impl Send for SlackOAuth2AuthorizationCredential
impl Sync for SlackOAuth2AuthorizationCredential
impl Unpin for SlackOAuth2AuthorizationCredential
impl UnwindSafe for SlackOAuth2AuthorizationCredential
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