Struct chain_impl_mockchain::certificate::pool::PoolPermissions
source · pub struct PoolPermissions(u64);
Expand description
Permission system related to the pool
Tuple Fields§
§0: u64
Implementations§
source§impl PoolPermissions
impl PoolPermissions
pub fn new(management_threshold: u8) -> PoolPermissions
pub fn from_u64(v: u64) -> Option<PoolPermissions>
pub fn management_threshold(self) -> ManagementThreshold
Trait Implementations§
source§impl Arbitrary for PoolPermissions
impl Arbitrary for PoolPermissions
§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = BoxedStrategy<PoolPermissions>
type Strategy = BoxedStrategy<PoolPermissions>
The type of
Strategy
used to generate values of type Self
.source§fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
source§impl Arbitrary for PoolPermissions
impl Arbitrary for PoolPermissions
source§impl Clone for PoolPermissions
impl Clone for PoolPermissions
source§fn clone(&self) -> PoolPermissions
fn clone(&self) -> PoolPermissions
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 PoolPermissions
impl Debug for PoolPermissions
source§impl PartialEq<PoolPermissions> for PoolPermissions
impl PartialEq<PoolPermissions> for PoolPermissions
source§fn eq(&self, other: &PoolPermissions) -> bool
fn eq(&self, other: &PoolPermissions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PoolPermissions
impl Eq for PoolPermissions
impl StructuralEq for PoolPermissions
impl StructuralPartialEq for PoolPermissions
Auto Trait Implementations§
impl RefUnwindSafe for PoolPermissions
impl Send for PoolPermissions
impl Sync for PoolPermissions
impl Unpin for PoolPermissions
impl UnwindSafe for PoolPermissions
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