pub struct CreateKeyQuorumBody {
pub authorization_threshold: Option<f64>,
pub display_name: Option<CreateKeyQuorumBodyDisplayName>,
pub public_keys: Vec<String>,
pub user_ids: Vec<String>,
}Expand description
CreateKeyQuorumBody
JSON schema
{
"examples": [
{
"authorization_threshold": 1,
"display_name": "Prod key quorum",
"public_keys": [
"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEx4aoeD72yykviK+f/
ckqE2CItVIG\n1rCnvC3/XZ1HgpOcMEMialRmTrqIK4oZlYd1RfxU3za/
C9yjhboIuoPD3g==",
"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAErzZtQr/bMIh3Y8f9ZqseB9i/
AfjQ\nhu+agbNqXcJy/TfoNqvc/Y3Mh7gIZ8ZLXQEykycx4mYSpqrxp1lBKqsZDQ=="
]
}
],
"type": "object",
"properties": {
"authorization_threshold": {
"description": "The number of keys that must sign for an action to
be valid. Must be less than or equal to total number of key quorum
members.",
"type": "number",
"minimum": 1.0
},
"display_name": {
"type": "string",
"maxLength": 50
},
"public_keys": {
"description": "List of P-256 public keys of the keys that should be authorized to sign on the key quorum, in base64-encoded DER format.",
"type": "array",
"items": {
"type": "string"
}
},
"user_ids": {
"description": "List of user IDs of the users that should be
authorized to sign on the key quorum.",
"type": "array",
"items": {
"type": "string"
}
}
}
}Fields§
§display_name: Option<CreateKeyQuorumBodyDisplayName>§public_keys: Vec<String>List of P-256 public keys of the keys that should be authorized to sign on the key quorum, in base64-encoded DER format.
user_ids: Vec<String>List of user IDs of the users that should be authorized to sign on the key quorum.
Trait Implementations§
Source§impl Clone for CreateKeyQuorumBody
impl Clone for CreateKeyQuorumBody
Source§fn clone(&self) -> CreateKeyQuorumBody
fn clone(&self) -> CreateKeyQuorumBody
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 Debug for CreateKeyQuorumBody
impl Debug for CreateKeyQuorumBody
Source§impl Default for CreateKeyQuorumBody
impl Default for CreateKeyQuorumBody
Source§impl<'de> Deserialize<'de> for CreateKeyQuorumBody
impl<'de> Deserialize<'de> for CreateKeyQuorumBody
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<&CreateKeyQuorumBody> for CreateKeyQuorumBody
impl From<&CreateKeyQuorumBody> for CreateKeyQuorumBody
Source§fn from(value: &CreateKeyQuorumBody) -> Self
fn from(value: &CreateKeyQuorumBody) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CreateKeyQuorumBody
impl RefUnwindSafe for CreateKeyQuorumBody
impl Send for CreateKeyQuorumBody
impl Sync for CreateKeyQuorumBody
impl Unpin for CreateKeyQuorumBody
impl UnwindSafe for CreateKeyQuorumBody
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