pub enum PackSystemConnectionCredentials {
HeaderCredentials(PackConnectionHeaderCredentials),
MultiHeaderCredentials(PackConnectionMultiHeaderCredentials),
UrlParamCredentials(PackConnectionUrlParamCredentials),
HttpBasicCredentials(PackConnectionHttpBasicCredentials),
CustomCredentials(PackConnectionCustomCredentials),
Oauth2ClientCredentials(PackConnectionOauth2ClientCredentials),
GoogleServiceAccountCredentials(PackConnectionGoogleServiceAccountCredentials),
AwsAssumeRoleCredentials(PackConnectionAwsAssumeRoleCredentials),
AwsAccessKeyCredentials(PackConnectionAwsAccessKeyCredentials),
}
Expand description
Credentials of a Pack connection.
JSON schema
{
"description": "Credentials of a Pack connection.",
"oneOf": [
{
"$ref": "#/components/schemas/PackConnectionHeaderCredentials"
},
{
"$ref": "#/components/schemas/PackConnectionMultiHeaderCredentials"
},
{
"$ref": "#/components/schemas/PackConnectionUrlParamCredentials"
},
{
"$ref": "#/components/schemas/PackConnectionHttpBasicCredentials"
},
{
"$ref": "#/components/schemas/PackConnectionCustomCredentials"
},
{
"$ref":
"#/components/schemas/PackConnectionOauth2ClientCredentials"
},
{
"$ref":
"#/components/schemas/PackConnectionGoogleServiceAccountCredentials"
},
{
"$ref":
"#/components/schemas/PackConnectionAwsAssumeRoleCredentials"
},
{
"$ref":
"#/components/schemas/PackConnectionAwsAccessKeyCredentials"
}
],
"x-schema-name": "PackSystemConnectionCredentials"
}
Variants§
HeaderCredentials(PackConnectionHeaderCredentials)
MultiHeaderCredentials(PackConnectionMultiHeaderCredentials)
UrlParamCredentials(PackConnectionUrlParamCredentials)
HttpBasicCredentials(PackConnectionHttpBasicCredentials)
CustomCredentials(PackConnectionCustomCredentials)
Oauth2ClientCredentials(PackConnectionOauth2ClientCredentials)
GoogleServiceAccountCredentials(PackConnectionGoogleServiceAccountCredentials)
AwsAssumeRoleCredentials(PackConnectionAwsAssumeRoleCredentials)
AwsAccessKeyCredentials(PackConnectionAwsAccessKeyCredentials)
Trait Implementations§
Source§impl Clone for PackSystemConnectionCredentials
impl Clone for PackSystemConnectionCredentials
Source§fn clone(&self) -> PackSystemConnectionCredentials
fn clone(&self) -> PackSystemConnectionCredentials
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<'de> Deserialize<'de> for PackSystemConnectionCredentials
impl<'de> Deserialize<'de> for PackSystemConnectionCredentials
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<&PackSystemConnectionCredentials> for PackSystemConnectionCredentials
impl From<&PackSystemConnectionCredentials> for PackSystemConnectionCredentials
Source§fn from(value: &PackSystemConnectionCredentials) -> Self
fn from(value: &PackSystemConnectionCredentials) -> Self
Converts to this type from the input type.
Source§impl From<PackConnectionAwsAccessKeyCredentials> for PackSystemConnectionCredentials
impl From<PackConnectionAwsAccessKeyCredentials> for PackSystemConnectionCredentials
Source§fn from(value: PackConnectionAwsAccessKeyCredentials) -> Self
fn from(value: PackConnectionAwsAccessKeyCredentials) -> Self
Converts to this type from the input type.
Source§impl From<PackConnectionAwsAssumeRoleCredentials> for PackSystemConnectionCredentials
impl From<PackConnectionAwsAssumeRoleCredentials> for PackSystemConnectionCredentials
Source§fn from(value: PackConnectionAwsAssumeRoleCredentials) -> Self
fn from(value: PackConnectionAwsAssumeRoleCredentials) -> Self
Converts to this type from the input type.
Source§impl From<PackConnectionCustomCredentials> for PackSystemConnectionCredentials
impl From<PackConnectionCustomCredentials> for PackSystemConnectionCredentials
Source§fn from(value: PackConnectionCustomCredentials) -> Self
fn from(value: PackConnectionCustomCredentials) -> Self
Converts to this type from the input type.
Source§impl From<PackConnectionGoogleServiceAccountCredentials> for PackSystemConnectionCredentials
impl From<PackConnectionGoogleServiceAccountCredentials> for PackSystemConnectionCredentials
Source§fn from(value: PackConnectionGoogleServiceAccountCredentials) -> Self
fn from(value: PackConnectionGoogleServiceAccountCredentials) -> Self
Converts to this type from the input type.
Source§impl From<PackConnectionHeaderCredentials> for PackSystemConnectionCredentials
impl From<PackConnectionHeaderCredentials> for PackSystemConnectionCredentials
Source§fn from(value: PackConnectionHeaderCredentials) -> Self
fn from(value: PackConnectionHeaderCredentials) -> Self
Converts to this type from the input type.
Source§impl From<PackConnectionHttpBasicCredentials> for PackSystemConnectionCredentials
impl From<PackConnectionHttpBasicCredentials> for PackSystemConnectionCredentials
Source§fn from(value: PackConnectionHttpBasicCredentials) -> Self
fn from(value: PackConnectionHttpBasicCredentials) -> Self
Converts to this type from the input type.
Source§impl From<PackConnectionMultiHeaderCredentials> for PackSystemConnectionCredentials
impl From<PackConnectionMultiHeaderCredentials> for PackSystemConnectionCredentials
Source§fn from(value: PackConnectionMultiHeaderCredentials) -> Self
fn from(value: PackConnectionMultiHeaderCredentials) -> Self
Converts to this type from the input type.
Source§impl From<PackConnectionOauth2ClientCredentials> for PackSystemConnectionCredentials
impl From<PackConnectionOauth2ClientCredentials> for PackSystemConnectionCredentials
Source§fn from(value: PackConnectionOauth2ClientCredentials) -> Self
fn from(value: PackConnectionOauth2ClientCredentials) -> Self
Converts to this type from the input type.
Source§impl From<PackConnectionUrlParamCredentials> for PackSystemConnectionCredentials
impl From<PackConnectionUrlParamCredentials> for PackSystemConnectionCredentials
Source§fn from(value: PackConnectionUrlParamCredentials) -> Self
fn from(value: PackConnectionUrlParamCredentials) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PackSystemConnectionCredentials
impl RefUnwindSafe for PackSystemConnectionCredentials
impl Send for PackSystemConnectionCredentials
impl Sync for PackSystemConnectionCredentials
impl Unpin for PackSystemConnectionCredentials
impl UnwindSafe for PackSystemConnectionCredentials
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