Struct chain_impl_mockchain::multisig::declaration::Declaration
source · pub struct Declaration {
pub(crate) threshold: u8,
pub(crate) owners: Vec<DeclElement>,
}
Expand description
Declaration of a multisig account parameters which is:
- a threshold that need to be between 1 and the size of owners
- a bunch of owners which is either a hash of a key, or a sub declaration
Fields§
§threshold: u8
§owners: Vec<DeclElement>
Implementations§
source§impl Declaration
impl Declaration
sourcepub fn to_identifier(&self) -> Identifier
pub fn to_identifier(&self) -> Identifier
Get the identifier associated with a declaration
pub fn is_valid(&self) -> Result<(), DeclarationError>
pub fn get_path(&self, ti: TreeIndex) -> Option<(&Declaration, Index)>
Trait Implementations§
source§impl Clone for Declaration
impl Clone for Declaration
source§fn clone(&self) -> Declaration
fn clone(&self) -> Declaration
Returns a copy 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 Declaration
impl Debug for Declaration
source§impl PartialEq<Declaration> for Declaration
impl PartialEq<Declaration> for Declaration
source§fn eq(&self, other: &Declaration) -> bool
fn eq(&self, other: &Declaration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for Declaration
impl StructuralEq for Declaration
impl StructuralPartialEq for Declaration
Auto Trait Implementations§
impl RefUnwindSafe for Declaration
impl Send for Declaration
impl Sync for Declaration
impl Unpin for Declaration
impl UnwindSafe for Declaration
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