pub struct QuorumV0 {
pub partial_order_quorum: u32,
pub partial_order_users: Vec<UserId>,
pub total_order_quorum: u32,
pub total_order_users: Vec<UserId>,
pub metadata: Vec<u8>,
}
Expand description
Quorum definition V0
Changed when the signers need to be updated. Signers are not necessarily editors of the repo, and they do not need to be members either, as they will be notified of RootCapRefresh anyway.
Fields§
§partial_order_quorum: u32
Number of signatures required for a partial order commit to be valid (threshold+1)
partial_order_users: Vec<UserId>
List of the users who can sign for partial order
total_order_quorum: u32
Number of signatures required for a total order commit to be valid (threshold+1)
total_order_users: Vec<UserId>
List of the users who can sign for total order
metadata: Vec<u8>
cryptographic material for Threshold signature
Trait Implementations§
Source§impl<'de> Deserialize<'de> for QuorumV0
impl<'de> Deserialize<'de> for QuorumV0
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
impl Eq for QuorumV0
impl StructuralPartialEq for QuorumV0
Auto Trait Implementations§
impl Freeze for QuorumV0
impl RefUnwindSafe for QuorumV0
impl Send for QuorumV0
impl Sync for QuorumV0
impl Unpin for QuorumV0
impl UnwindSafe for QuorumV0
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