pub struct MintCredentialsResponse {
pub client_config: ClientConfig,
pub expires_at: String,
pub principal: String,
}Expand description
Response body for POST /v1/credentials/mint.
JSON schema
{
"description": "Response body for `POST /v1/credentials/mint`.",
"type": "object",
"required": [
"clientConfig",
"expiresAt",
"principal"
],
"properties": {
"clientConfig": {
"$ref": "#/components/schemas/ClientConfig"
},
"expiresAt": {
"description": "Credential expiry as an RFC3339 timestamp (now + clamped duration).\n\nThis is server-computed (`now + clamped duration`), not read back from\nthe provider — for lazily-resolved configs (e.g. GCP, where the\nresolver doesn't always round-trip an authoritative expiry) it is\nnominal rather than provider truth. Treat it as a refresh hint: fetch\nnew credentials at or before this time, don't rely on it to prove the\nunderlying credential is still valid at that exact instant.",
"type": "string"
},
"principal": {
"description": "Human-readable identity the credentials act as (role ARN, SA email,\nmanaged-identity client id, or `platform:account` for the local path).",
"type": "string"
}
}
}Fields§
§client_config: ClientConfig§expires_at: StringCredential expiry as an RFC3339 timestamp (now + clamped duration).
This is server-computed (now + clamped duration), not read back from
the provider — for lazily-resolved configs (e.g. GCP, where the
resolver doesn’t always round-trip an authoritative expiry) it is
nominal rather than provider truth. Treat it as a refresh hint: fetch
new credentials at or before this time, don’t rely on it to prove the
underlying credential is still valid at that exact instant.
principal: StringHuman-readable identity the credentials act as (role ARN, SA email,
managed-identity client id, or platform:account for the local path).
Implementations§
Source§impl MintCredentialsResponse
impl MintCredentialsResponse
pub fn builder() -> MintCredentialsResponse
Trait Implementations§
Source§impl Clone for MintCredentialsResponse
impl Clone for MintCredentialsResponse
Source§fn clone(&self) -> MintCredentialsResponse
fn clone(&self) -> MintCredentialsResponse
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 MintCredentialsResponse
impl Debug for MintCredentialsResponse
Source§impl<'de> Deserialize<'de> for MintCredentialsResponse
impl<'de> Deserialize<'de> for MintCredentialsResponse
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<&MintCredentialsResponse> for MintCredentialsResponse
impl From<&MintCredentialsResponse> for MintCredentialsResponse
Source§fn from(value: &MintCredentialsResponse) -> Self
fn from(value: &MintCredentialsResponse) -> Self
Converts to this type from the input type.
Source§impl From<MintCredentialsResponse> for MintCredentialsResponse
impl From<MintCredentialsResponse> for MintCredentialsResponse
Source§fn from(value: MintCredentialsResponse) -> Self
fn from(value: MintCredentialsResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for MintCredentialsResponse
impl Serialize for MintCredentialsResponse
Source§impl TryFrom<MintCredentialsResponse> for MintCredentialsResponse
impl TryFrom<MintCredentialsResponse> for MintCredentialsResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: MintCredentialsResponse) -> Result<Self, ConversionError>
fn try_from(value: MintCredentialsResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for MintCredentialsResponse
impl RefUnwindSafe for MintCredentialsResponse
impl Send for MintCredentialsResponse
impl Sync for MintCredentialsResponse
impl Unpin for MintCredentialsResponse
impl UnsafeUnpin for MintCredentialsResponse
impl UnwindSafe for MintCredentialsResponse
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