pub struct BaseIntentResponse {
pub authorization_details: Vec<IntentAuthorization>,
pub created_at: f64,
pub created_by_display_name: String,
pub created_by_id: Option<String>,
pub custom_expiry: bool,
pub dismissal_reason: Option<String>,
pub dismissed_at: Option<f64>,
pub expires_at: f64,
pub intent_id: String,
pub rejected_at: Option<f64>,
pub resource_id: String,
pub status: IntentStatus,
}Expand description
Common fields shared by all intent response types.
JSON schema
{
"title": "BaseIntentResponse",
"description": "Common fields shared by all intent response types.",
"type": "object",
"required": [
"authorization_details",
"created_at",
"created_by_display_name",
"custom_expiry",
"expires_at",
"intent_id",
"resource_id",
"status"
],
"properties": {
"authorization_details": {
"description": "Detailed authorization information including key
quorum members, thresholds, and signature status",
"type": "array",
"items": {
"$ref": "#/components/schemas/IntentAuthorization"
}
},
"created_at": {
"description": "Unix timestamp when the intent was created",
"type": "number"
},
"created_by_display_name": {
"description": "Display name of the user who created the intent",
"type": "string"
},
"created_by_id": {
"description": "ID of the user who created the intent. If
undefined, the intent was created using the app secret",
"type": "string"
},
"custom_expiry": {
"description": "Whether this intent has a custom expiry time set by
the client. If false, the intent expires after a default duration.",
"type": "boolean"
},
"dismissal_reason": {
"description": "Human-readable reason for dismissal, present when
status is 'dismissed'",
"type": "string"
},
"dismissed_at": {
"description": "Unix timestamp when the intent was dismissed,
present when status is 'dismissed'",
"type": "number"
},
"expires_at": {
"description": "Unix timestamp when the intent expires",
"type": "number"
},
"intent_id": {
"description": "Unique ID for the intent",
"type": "string"
},
"rejected_at": {
"description": "Unix timestamp when the intent was rejected,
present when status is 'rejected'",
"type": "number"
},
"resource_id": {
"description": "ID of the resource being modified (wallet_id,
policy_id, etc)",
"type": "string"
},
"status": {
"$ref": "#/components/schemas/IntentStatus"
}
},
"x-stainless-model": "intents.base_intent_response"
}Fields§
Detailed authorization information including key quorum members, thresholds, and signature status
created_at: f64§created_by_display_name: StringDisplay name of the user who created the intent
created_by_id: Option<String>ID of the user who created the intent. If undefined, the intent was created using the app secret
custom_expiry: boolWhether this intent has a custom expiry time set by the client. If false, the intent expires after a default duration.
dismissal_reason: Option<String>Human-readable reason for dismissal, present when status is ‘dismissed’
dismissed_at: Option<f64>§expires_at: f64§intent_id: StringUnique ID for the intent
rejected_at: Option<f64>§resource_id: StringID of the resource being modified (wallet_id, policy_id, etc)
status: IntentStatusTrait Implementations§
Source§impl Clone for BaseIntentResponse
impl Clone for BaseIntentResponse
Source§fn clone(&self) -> BaseIntentResponse
fn clone(&self) -> BaseIntentResponse
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 BaseIntentResponse
impl Debug for BaseIntentResponse
Source§impl<'de> Deserialize<'de> for BaseIntentResponse
impl<'de> Deserialize<'de> for BaseIntentResponse
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<&BaseIntentResponse> for BaseIntentResponse
impl From<&BaseIntentResponse> for BaseIntentResponse
Source§fn from(value: &BaseIntentResponse) -> Self
fn from(value: &BaseIntentResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BaseIntentResponse
impl RefUnwindSafe for BaseIntentResponse
impl Send for BaseIntentResponse
impl Sync for BaseIntentResponse
impl Unpin for BaseIntentResponse
impl UnsafeUnpin for BaseIntentResponse
impl UnwindSafe for BaseIntentResponse
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