pub struct PolicyIntentResponseAuthorizationDetailsItem {
pub display_name: Option<String>,
pub members: Vec<PolicyIntentResponseAuthorizationDetailsItemMembersItem>,
pub threshold: f64,
}Expand description
PolicyIntentResponseAuthorizationDetailsItem
JSON schema
{
"type": "object",
"required": [
"members",
"threshold"
],
"properties": {
"display_name": {
"description": "Display name of the key quorum",
"type": "string"
},
"members": {
"description": "Members in this authorization quorum",
"type": "array",
"items": {
"oneOf": [
{
"title": "User member",
"type": "object",
"required": [
"has_signed",
"type",
"user_id"
],
"properties": {
"display_name": {
"description": "Display name for the user (email, etc)",
"type": "string"
},
"has_signed": {
"description": "Whether this member has signed the
intent",
"type": "boolean"
},
"type": {
"type": "string",
"enum": [
"user"
]
},
"user_id": {
"description": "User ID of the key quorum member",
"type": "string"
}
}
},
{
"title": "Key member",
"type": "object",
"required": [
"has_signed",
"public_key",
"type"
],
"properties": {
"display_name": {
"description": "Display name for the key (if any)",
"type": "string"
},
"has_signed": {
"description": "Whether this key has signed the intent",
"type": "boolean"
},
"public_key": {
"description": "Public key of the key quorum member",
"type": "string"
},
"type": {
"type": "string",
"enum": [
"key"
]
}
}
}
]
}
},
"threshold": {
"description": "Number of signatures required from this quorum",
"type": "number"
}
}
}Fields§
§display_name: Option<String>Display name of the key quorum
members: Vec<PolicyIntentResponseAuthorizationDetailsItemMembersItem>Members in this authorization quorum
threshold: f64Trait Implementations§
Source§impl Clone for PolicyIntentResponseAuthorizationDetailsItem
impl Clone for PolicyIntentResponseAuthorizationDetailsItem
Source§fn clone(&self) -> PolicyIntentResponseAuthorizationDetailsItem
fn clone(&self) -> PolicyIntentResponseAuthorizationDetailsItem
Returns a duplicate of the value. Read more
1.0.0 · 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 PolicyIntentResponseAuthorizationDetailsItem
impl<'de> Deserialize<'de> for PolicyIntentResponseAuthorizationDetailsItem
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<&PolicyIntentResponseAuthorizationDetailsItem> for PolicyIntentResponseAuthorizationDetailsItem
impl From<&PolicyIntentResponseAuthorizationDetailsItem> for PolicyIntentResponseAuthorizationDetailsItem
Source§fn from(value: &PolicyIntentResponseAuthorizationDetailsItem) -> Self
fn from(value: &PolicyIntentResponseAuthorizationDetailsItem) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PolicyIntentResponseAuthorizationDetailsItem
impl RefUnwindSafe for PolicyIntentResponseAuthorizationDetailsItem
impl Send for PolicyIntentResponseAuthorizationDetailsItem
impl Sync for PolicyIntentResponseAuthorizationDetailsItem
impl Unpin for PolicyIntentResponseAuthorizationDetailsItem
impl UnsafeUnpin for PolicyIntentResponseAuthorizationDetailsItem
impl UnwindSafe for PolicyIntentResponseAuthorizationDetailsItem
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