pub struct PackOauthConfigMetadata {
pub authorization_url: String,
pub masked_client_id: String,
pub masked_client_secret: String,
pub redirect_uri: String,
pub scopes: Option<String>,
pub token_prefix: Option<String>,
pub token_url: String,
}
Expand description
The Pack OAuth configuration metadata.
JSON schema
{
"description": "The Pack OAuth configuration metadata.",
"type": "object",
"required": [
"authorizationUrl",
"maskedClientId",
"maskedClientSecret",
"redirectUri",
"tokenUrl"
],
"properties": {
"authorizationUrl": {
"description": "Authorization URL of the OAuth provider.",
"type": "string"
},
"maskedClientId": {
"description": "Masked OAuth client id. If not set, empty string
will be returned.",
"type": "string"
},
"maskedClientSecret": {
"description": "Masked OAuth client secret. If not set, empty
string will be returned.",
"type": "string"
},
"redirectUri": {
"description": "Redirect URI of the Pack.",
"type": "string"
},
"scopes": {
"description": "Optional scopes of the OAuth client.",
"type": "string"
},
"tokenPrefix": {
"description": "Optional token prefix that's used to make the API
request.",
"type": "string"
},
"tokenUrl": {
"description": "Token URL of the OAuth provider.",
"type": "string"
}
},
"additionalProperties": false,
"x-schema-name": "PackOauthConfigMetadata"
}
Fields§
Authorization URL of the OAuth provider.
masked_client_id: String
Masked OAuth client id. If not set, empty string will be returned.
masked_client_secret: String
Masked OAuth client secret. If not set, empty string will be returned.
redirect_uri: String
Redirect URI of the Pack.
scopes: Option<String>
Optional scopes of the OAuth client.
token_prefix: Option<String>
Optional token prefix that’s used to make the API request.
token_url: String
Token URL of the OAuth provider.
Trait Implementations§
Source§impl Clone for PackOauthConfigMetadata
impl Clone for PackOauthConfigMetadata
Source§fn clone(&self) -> PackOauthConfigMetadata
fn clone(&self) -> PackOauthConfigMetadata
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 Debug for PackOauthConfigMetadata
impl Debug for PackOauthConfigMetadata
Source§impl<'de> Deserialize<'de> for PackOauthConfigMetadata
impl<'de> Deserialize<'de> for PackOauthConfigMetadata
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<&PackOauthConfigMetadata> for PackOauthConfigMetadata
impl From<&PackOauthConfigMetadata> for PackOauthConfigMetadata
Source§fn from(value: &PackOauthConfigMetadata) -> Self
fn from(value: &PackOauthConfigMetadata) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PackOauthConfigMetadata
impl RefUnwindSafe for PackOauthConfigMetadata
impl Send for PackOauthConfigMetadata
impl Sync for PackOauthConfigMetadata
impl Unpin for PackOauthConfigMetadata
impl UnwindSafe for PackOauthConfigMetadata
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