pub struct WebhookCredential {
pub provider: ProviderTrue,
pub authentication_plan: OAuth2AuthenticationPlan,
pub id: String,
pub org_id: String,
pub created_at: String,
pub updated_at: String,
pub authentication_session: Oauth2AuthenticationSession,
pub name: Option<String>,
}
Fields§
§provider: ProviderTrue
§authentication_plan: OAuth2AuthenticationPlan
This is the authentication plan. Currently supports OAuth2 RFC 6749.
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.
authentication_session: Oauth2AuthenticationSession
This is the authentication session for the credential. Available for credentials that have an authentication plan.
name: Option<String>
This is the name of credential. This is just for your reference.
Implementations§
Source§impl WebhookCredential
impl WebhookCredential
pub fn new( provider: ProviderTrue, authentication_plan: OAuth2AuthenticationPlan, id: String, org_id: String, created_at: String, updated_at: String, authentication_session: Oauth2AuthenticationSession, ) -> WebhookCredential
Trait Implementations§
Source§impl Clone for WebhookCredential
impl Clone for WebhookCredential
Source§fn clone(&self) -> WebhookCredential
fn clone(&self) -> WebhookCredential
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 Debug for WebhookCredential
impl Debug for WebhookCredential
Source§impl Default for WebhookCredential
impl Default for WebhookCredential
Source§fn default() -> WebhookCredential
fn default() -> WebhookCredential
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WebhookCredential
impl<'de> Deserialize<'de> for WebhookCredential
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 WebhookCredential
impl PartialEq for WebhookCredential
Source§impl Serialize for WebhookCredential
impl Serialize for WebhookCredential
impl StructuralPartialEq for WebhookCredential
Auto Trait Implementations§
impl Freeze for WebhookCredential
impl RefUnwindSafe for WebhookCredential
impl Send for WebhookCredential
impl Sync for WebhookCredential
impl Unpin for WebhookCredential
impl UnwindSafe for WebhookCredential
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