Enum snapshot_lib::registration::Delegations
source · pub enum Delegations {
New(Vec<(Identifier, u32)>),
Legacy(Identifier),
}
Expand description
To allow backward compatibility and avoid requiring existing users to re-register we still consider valid old CIP-15 registrations, with the simple correspondence between the two described in CIP-36.
Variants§
Trait Implementations§
source§impl Arbitrary for Delegations
impl Arbitrary for Delegations
§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<Delegations>
type Strategy = BoxedStrategy<Delegations>
The type of
Strategy
used to generate values of type Self
.source§fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
source§impl Clone for Delegations
impl Clone for Delegations
source§fn clone(&self) -> Delegations
fn clone(&self) -> Delegations
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 Delegations
impl Debug for Delegations
source§impl<'de> Deserialize<'de> for Delegations
impl<'de> Deserialize<'de> for Delegations
source§fn deserialize<D>(deserializer: D) -> Result<Delegations, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Delegations, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<Delegations> for Delegations
impl PartialEq<Delegations> for Delegations
source§fn eq(&self, other: &Delegations) -> bool
fn eq(&self, other: &Delegations) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Delegations
impl Serialize for Delegations
impl Eq for Delegations
impl StructuralEq for Delegations
impl StructuralPartialEq for Delegations
Auto Trait Implementations§
impl RefUnwindSafe for Delegations
impl Send for Delegations
impl Sync for Delegations
impl Unpin for Delegations
impl UnwindSafe for Delegations
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