pub enum IntentAuthorizationMember {
User {
signed_at: Option<f64>,
user_id: String,
},
Key {
public_key: String,
signed_at: Option<f64>,
},
KeyQuorum {
display_name: Option<String>,
key_quorum_id: String,
members: Vec<IntentAuthorizationKeyQuorumMember>,
threshold: f64,
threshold_met: bool,
},
}Expand description
A member of an intent authorization quorum. Can be a user, key, or nested key quorum.
JSON schema
{
"title": "IntentAuthorizationMember",
"description": "A member of an intent authorization quorum. Can be a
user, key, or nested key quorum.",
"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"
]
}
}
},
{
"title": "Key quorum member",
"type": "object",
"required": [
"key_quorum_id",
"members",
"threshold",
"threshold_met",
"type"
],
"properties": {
"display_name": {
"description": "Display name for the child key quorum (if
any)",
"type": "string"
},
"key_quorum_id": {
"description": "ID of the child key quorum member",
"type": "string"
},
"members": {
"description": "Members of this child quorum",
"type": "array",
"items": {
"$ref":
"#/components/schemas/IntentAuthorizationKeyQuorumMember"
}
},
"threshold": {
"description": "Number of signatures required from this child
quorum",
"type": "number"
},
"threshold_met": {
"description": "Whether this child key quorum has met its
signature threshold",
"type": "boolean"
},
"type": {
"type": "string",
"enum": [
"key_quorum"
]
}
}
}
],
"x-stainless-model": "intents.intent_authorization_member"
}Variants§
User
User member
Key
Key member
KeyQuorum
Key quorum member
Fields
§
members: Vec<IntentAuthorizationKeyQuorumMember>Members of this child quorum
Trait Implementations§
Source§impl Clone for IntentAuthorizationMember
impl Clone for IntentAuthorizationMember
Source§fn clone(&self) -> IntentAuthorizationMember
fn clone(&self) -> IntentAuthorizationMember
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 IntentAuthorizationMember
impl Debug for IntentAuthorizationMember
Source§impl<'de> Deserialize<'de> for IntentAuthorizationMember
impl<'de> Deserialize<'de> for IntentAuthorizationMember
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<&IntentAuthorizationMember> for IntentAuthorizationMember
impl From<&IntentAuthorizationMember> for IntentAuthorizationMember
Source§fn from(value: &IntentAuthorizationMember) -> Self
fn from(value: &IntentAuthorizationMember) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IntentAuthorizationMember
impl RefUnwindSafe for IntentAuthorizationMember
impl Send for IntentAuthorizationMember
impl Sync for IntentAuthorizationMember
impl Unpin for IntentAuthorizationMember
impl UnsafeUnpin for IntentAuthorizationMember
impl UnwindSafe for IntentAuthorizationMember
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