pub struct NewOidcTrustRequest {
pub audience: Option<String>,
pub description: Option<String>,
pub issuer: String,
pub name: String,
pub role: Option<MemberRole>,
pub subject: String,
}Expand description
Request to create a new OIDC trust relationship.
JSON schema
{
"description": "Request to create a new OIDC trust relationship.",
"type": "object",
"required": [
"issuer",
"name",
"subject"
],
"properties": {
"audience": {
"description": "Optional audience claim pattern. `*` matches any sequence of characters.\nIf omitted, the audience claim is not checked.",
"examples": [
"https://github.com/my-org"
],
"type": [
"string",
"null"
]
},
"description": {
"description": "Optional human-readable description.",
"examples": [
"GitHub Actions deploys from main branch"
],
"type": [
"string",
"null"
]
},
"issuer": {
"description": "Issuer URL exactly as it appears in the `iss` claim.\nJWKS are discovered at `<issuer>/.well-known/openid-configuration`.",
"examples": [
"https://token.actions.githubusercontent.com"
],
"type": "string"
},
"name": {
"description": "Trust relationship name. Unique within the tenant.",
"examples": [
"github-actions-prod"
],
"type": "string"
},
"role": {
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/MemberRole"
}
]
}
]
},
"subject": {
"description": "Subject claim pattern. `*` matches any sequence of characters.",
"examples": [
"repo:my-org/my-repo:ref:refs/heads/main"
],
"type": "string"
}
}
}Fields§
§audience: Option<String>Optional audience claim pattern. * matches any sequence of characters.
If omitted, the audience claim is not checked.
description: Option<String>Optional human-readable description.
issuer: StringIssuer URL exactly as it appears in the iss claim.
JWKS are discovered at <issuer>/.well-known/openid-configuration.
name: StringTrust relationship name. Unique within the tenant.
role: Option<MemberRole>§subject: StringSubject claim pattern. * matches any sequence of characters.
Implementations§
Source§impl NewOidcTrustRequest
impl NewOidcTrustRequest
pub fn builder() -> NewOidcTrustRequest
Trait Implementations§
Source§impl Clone for NewOidcTrustRequest
impl Clone for NewOidcTrustRequest
Source§fn clone(&self) -> NewOidcTrustRequest
fn clone(&self) -> NewOidcTrustRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NewOidcTrustRequest
impl Debug for NewOidcTrustRequest
Source§impl<'de> Deserialize<'de> for NewOidcTrustRequest
impl<'de> Deserialize<'de> for NewOidcTrustRequest
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<&NewOidcTrustRequest> for NewOidcTrustRequest
impl From<&NewOidcTrustRequest> for NewOidcTrustRequest
Source§fn from(value: &NewOidcTrustRequest) -> Self
fn from(value: &NewOidcTrustRequest) -> Self
Converts to this type from the input type.
Source§impl From<NewOidcTrustRequest> for NewOidcTrustRequest
impl From<NewOidcTrustRequest> for NewOidcTrustRequest
Source§fn from(value: NewOidcTrustRequest) -> Self
fn from(value: NewOidcTrustRequest) -> Self
Converts to this type from the input type.
Source§impl Serialize for NewOidcTrustRequest
impl Serialize for NewOidcTrustRequest
Source§impl TryFrom<NewOidcTrustRequest> for NewOidcTrustRequest
impl TryFrom<NewOidcTrustRequest> for NewOidcTrustRequest
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: NewOidcTrustRequest) -> Result<Self, ConversionError>
fn try_from(value: NewOidcTrustRequest) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for NewOidcTrustRequest
impl RefUnwindSafe for NewOidcTrustRequest
impl Send for NewOidcTrustRequest
impl Sync for NewOidcTrustRequest
impl Unpin for NewOidcTrustRequest
impl UnsafeUnpin for NewOidcTrustRequest
impl UnwindSafe for NewOidcTrustRequest
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