pub struct CreateOrganizationSecretResponse {
pub created_at: String,
pub id: String,
pub last_four: String,
pub organization_secret: String,
pub revoked_at: Option<String>,
pub signing_public_key: Option<String>,
}Expand description
Response returned when creating a new organization secret.
JSON schema
{
"title": "CreateOrganizationSecretResponse",
"description": "Response returned when creating a new organization
secret.",
"allOf": [
{
"$ref": "#/components/schemas/OrganizationSecretView"
},
{
"type": "object",
"required": [
"organization_secret"
],
"properties": {
"organization_secret": {
"description": "The plaintext organization secret. Returned
only at creation time.",
"type": "string"
}
}
}
],
"x-stainless-model":
"organizations.create_organization_secret_response"
}Fields§
§created_at: StringISO 8601 creation timestamp
id: StringUnique secret identifier
last_four: StringLast four characters of the secret
organization_secret: StringThe plaintext organization secret. Returned only at creation time.
revoked_at: Option<String>ISO 8601 revocation timestamp, or null if active
signing_public_key: Option<String>P-256 public key in PEM format for request signing, or null if not configured
Trait Implementations§
Source§impl Clone for CreateOrganizationSecretResponse
impl Clone for CreateOrganizationSecretResponse
Source§fn clone(&self) -> CreateOrganizationSecretResponse
fn clone(&self) -> CreateOrganizationSecretResponse
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<'de> Deserialize<'de> for CreateOrganizationSecretResponse
impl<'de> Deserialize<'de> for CreateOrganizationSecretResponse
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<&CreateOrganizationSecretResponse> for CreateOrganizationSecretResponse
impl From<&CreateOrganizationSecretResponse> for CreateOrganizationSecretResponse
Source§fn from(value: &CreateOrganizationSecretResponse) -> Self
fn from(value: &CreateOrganizationSecretResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CreateOrganizationSecretResponse
impl RefUnwindSafe for CreateOrganizationSecretResponse
impl Send for CreateOrganizationSecretResponse
impl Sync for CreateOrganizationSecretResponse
impl Unpin for CreateOrganizationSecretResponse
impl UnsafeUnpin for CreateOrganizationSecretResponse
impl UnwindSafe for CreateOrganizationSecretResponse
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