pub enum IntentAuthorizationKeyQuorumMember {
User {
signed_at: Option<f64>,
user_id: String,
},
Key {
public_key: String,
signed_at: Option<f64>,
},
}Expand description
A leaf member (user or key) of a nested key quorum in an intent authorization.
JSON schema
{
"title": "IntentAuthorizationKeyQuorumMember",
"description": "A leaf member (user or key) of a nested key quorum in
an intent authorization.",
"oneOf": [
{
"title": "User member",
"type": "object",
"required": [
"type",
"user_id"
],
"properties": {
"signed_at": {
"description": "Unix timestamp when this member signed, or null
if not yet signed.",
"type": "number"
},
"type": {
"type": "string",
"enum": [
"user"
]
},
"user_id": {
"description": "User ID of the key quorum member",
"type": "string"
}
}
},
{
"title": "Key member",
"type": "object",
"required": [
"public_key",
"type"
],
"properties": {
"public_key": {
"description": "Public key of the key quorum member",
"type": "string"
},
"signed_at": {
"description": "Unix timestamp when this member signed, or null
if not yet signed.",
"type": "number"
},
"type": {
"type": "string",
"enum": [
"key"
]
}
}
}
],
"x-stainless-model": "intents.intent_authorization_key_quorum_member"
}Variants§
Trait Implementations§
Source§impl Clone for IntentAuthorizationKeyQuorumMember
impl Clone for IntentAuthorizationKeyQuorumMember
Source§fn clone(&self) -> IntentAuthorizationKeyQuorumMember
fn clone(&self) -> IntentAuthorizationKeyQuorumMember
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 IntentAuthorizationKeyQuorumMember
impl<'de> Deserialize<'de> for IntentAuthorizationKeyQuorumMember
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<&IntentAuthorizationKeyQuorumMember> for IntentAuthorizationKeyQuorumMember
impl From<&IntentAuthorizationKeyQuorumMember> for IntentAuthorizationKeyQuorumMember
Source§fn from(value: &IntentAuthorizationKeyQuorumMember) -> Self
fn from(value: &IntentAuthorizationKeyQuorumMember) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IntentAuthorizationKeyQuorumMember
impl RefUnwindSafe for IntentAuthorizationKeyQuorumMember
impl Send for IntentAuthorizationKeyQuorumMember
impl Sync for IntentAuthorizationKeyQuorumMember
impl Unpin for IntentAuthorizationKeyQuorumMember
impl UnsafeUnpin for IntentAuthorizationKeyQuorumMember
impl UnwindSafe for IntentAuthorizationKeyQuorumMember
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