pub struct IntentAuthorization {
pub display_name: Option<String>,
pub members: Vec<IntentAuthorizationMember>,
pub threshold: f64,
}Expand description
Authorization quorum for an intent
JSON schema
{
"title": "IntentAuthorization",
"description": "Authorization quorum for an intent",
"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": {
"$ref": "#/components/schemas/IntentAuthorizationMember"
}
},
"threshold": {
"description": "Number of signatures required to satisfy this
quorum",
"type": "number"
}
},
"x-stainless-model": "intents.intent_authorization"
}Fields§
§display_name: Option<String>Display name of the key quorum
members: Vec<IntentAuthorizationMember>Members in this authorization quorum
threshold: f64Trait Implementations§
Source§impl Clone for IntentAuthorization
impl Clone for IntentAuthorization
Source§fn clone(&self) -> IntentAuthorization
fn clone(&self) -> IntentAuthorization
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 IntentAuthorization
impl Debug for IntentAuthorization
Source§impl<'de> Deserialize<'de> for IntentAuthorization
impl<'de> Deserialize<'de> for IntentAuthorization
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<&IntentAuthorization> for IntentAuthorization
impl From<&IntentAuthorization> for IntentAuthorization
Source§fn from(value: &IntentAuthorization) -> Self
fn from(value: &IntentAuthorization) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IntentAuthorization
impl RefUnwindSafe for IntentAuthorization
impl Send for IntentAuthorization
impl Sync for IntentAuthorization
impl Unpin for IntentAuthorization
impl UnsafeUnpin for IntentAuthorization
impl UnwindSafe for IntentAuthorization
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