pub struct IntegrationCredential(pub Value);Expand description
A single integration credential definition. The format discriminator selects which credential shape applies.
Union type: holds the raw JSON and decodes a variant on demand.
Tuple Fields§
§0: ValueImplementations§
Source§impl IntegrationCredential
impl IntegrationCredential
Sourcepub fn as_integration_api_key_credential(
&self,
) -> Result<IntegrationApiKeyCredential, Error>
pub fn as_integration_api_key_credential( &self, ) -> Result<IntegrationApiKeyCredential, Error>
Decode the value as IntegrationApiKeyCredential.
Sourcepub fn as_integration_o_auth2_credential(
&self,
) -> Result<IntegrationOAuth2Credential, Error>
pub fn as_integration_o_auth2_credential( &self, ) -> Result<IntegrationOAuth2Credential, Error>
Decode the value as IntegrationOAuth2Credential.
Sourcepub fn as_integration_o_auth_credential(
&self,
) -> Result<IntegrationOAuthCredential, Error>
pub fn as_integration_o_auth_credential( &self, ) -> Result<IntegrationOAuthCredential, Error>
Decode the value as IntegrationOAuthCredential.
Sourcepub fn as_integration_keka_o_auth_credential(
&self,
) -> Result<IntegrationKekaOAuthCredential, Error>
pub fn as_integration_keka_o_auth_credential( &self, ) -> Result<IntegrationKekaOAuthCredential, Error>
Decode the value as IntegrationKekaOAuthCredential.
Sourcepub fn as_integration_o_auth2_client_credential(
&self,
) -> Result<IntegrationOAuth2ClientCredential, Error>
pub fn as_integration_o_auth2_client_credential( &self, ) -> Result<IntegrationOAuth2ClientCredential, Error>
Decode the value as IntegrationOAuth2ClientCredential.
Sourcepub fn as_integration_jwt_bearer_credential(
&self,
) -> Result<IntegrationJwtBearerCredential, Error>
pub fn as_integration_jwt_bearer_credential( &self, ) -> Result<IntegrationJwtBearerCredential, Error>
Decode the value as IntegrationJwtBearerCredential.
Sourcepub fn as_integration_aws_sts_credential(
&self,
) -> Result<IntegrationAwsStsCredential, Error>
pub fn as_integration_aws_sts_credential( &self, ) -> Result<IntegrationAwsStsCredential, Error>
Decode the value as IntegrationAwsStsCredential.
Trait Implementations§
Source§impl Clone for IntegrationCredential
impl Clone for IntegrationCredential
Source§impl Debug for IntegrationCredential
impl Debug for IntegrationCredential
Source§impl Default for IntegrationCredential
impl Default for IntegrationCredential
Source§impl<'de> Deserialize<'de> for IntegrationCredential
impl<'de> Deserialize<'de> for IntegrationCredential
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 From<IntegrationApiKeyCredential> for IntegrationCredential
impl From<IntegrationApiKeyCredential> for IntegrationCredential
Source§fn from(v: IntegrationApiKeyCredential) -> Self
fn from(v: IntegrationApiKeyCredential) -> Self
Converts to this type from the input type.
Source§impl From<IntegrationAwsStsCredential> for IntegrationCredential
impl From<IntegrationAwsStsCredential> for IntegrationCredential
Source§fn from(v: IntegrationAwsStsCredential) -> Self
fn from(v: IntegrationAwsStsCredential) -> Self
Converts to this type from the input type.
Source§impl From<IntegrationJwtBearerCredential> for IntegrationCredential
impl From<IntegrationJwtBearerCredential> for IntegrationCredential
Source§fn from(v: IntegrationJwtBearerCredential) -> Self
fn from(v: IntegrationJwtBearerCredential) -> Self
Converts to this type from the input type.
Source§impl From<IntegrationKekaOAuthCredential> for IntegrationCredential
impl From<IntegrationKekaOAuthCredential> for IntegrationCredential
Source§fn from(v: IntegrationKekaOAuthCredential) -> Self
fn from(v: IntegrationKekaOAuthCredential) -> Self
Converts to this type from the input type.
Source§impl From<IntegrationOAuth2ClientCredential> for IntegrationCredential
impl From<IntegrationOAuth2ClientCredential> for IntegrationCredential
Source§fn from(v: IntegrationOAuth2ClientCredential) -> Self
fn from(v: IntegrationOAuth2ClientCredential) -> Self
Converts to this type from the input type.
Source§impl From<IntegrationOAuth2Credential> for IntegrationCredential
impl From<IntegrationOAuth2Credential> for IntegrationCredential
Source§fn from(v: IntegrationOAuth2Credential) -> Self
fn from(v: IntegrationOAuth2Credential) -> Self
Converts to this type from the input type.
Source§impl From<IntegrationOAuthCredential> for IntegrationCredential
impl From<IntegrationOAuthCredential> for IntegrationCredential
Source§fn from(v: IntegrationOAuthCredential) -> Self
fn from(v: IntegrationOAuthCredential) -> Self
Converts to this type from the input type.
Source§impl From<Value> for IntegrationCredential
impl From<Value> for IntegrationCredential
Source§impl PartialEq for IntegrationCredential
impl PartialEq for IntegrationCredential
Source§impl Serialize for IntegrationCredential
impl Serialize for IntegrationCredential
impl StructuralPartialEq for IntegrationCredential
Auto Trait Implementations§
impl Freeze for IntegrationCredential
impl RefUnwindSafe for IntegrationCredential
impl Send for IntegrationCredential
impl Sync for IntegrationCredential
impl Unpin for IntegrationCredential
impl UnsafeUnpin for IntegrationCredential
impl UnwindSafe for IntegrationCredential
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