Enum linera_base::identifiers::ChainDescription
source · pub enum ChainDescription {
Root(u32),
Child(MessageId),
}Expand description
How to create a chain.
Variants§
Root(u32)
The chain was created by the genesis configuration.
Child(MessageId)
The chain was created by a message from another chain.
Implementations§
Trait Implementations§
source§impl Clone for ChainDescription
impl Clone for ChainDescription
source§fn clone(&self) -> ChainDescription
fn clone(&self) -> ChainDescription
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 ChainDescription
impl Debug for ChainDescription
source§impl<'de> Deserialize<'de> for ChainDescription
impl<'de> Deserialize<'de> for ChainDescription
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<ChainDescription> for ChainId
impl From<ChainDescription> for ChainId
source§fn from(description: ChainDescription) -> Self
fn from(description: ChainDescription) -> Self
Converts to this type from the input type.
source§impl Hash for ChainDescription
impl Hash for ChainDescription
source§impl InputType for ChainDescription
impl InputType for ChainDescription
§type RawValueType = ChainDescription
type RawValueType = ChainDescription
The raw type used for validator. Read more
source§fn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
source§fn parse(value: Option<Value>) -> InputValueResult<Self>
fn parse(value: Option<Value>) -> InputValueResult<Self>
Parse from
Value. None represents undefined.source§fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn as_raw_value(&self) -> Option<&Self::RawValueType>
Returns a reference to the raw value.
source§fn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
source§impl Ord for ChainDescription
impl Ord for ChainDescription
source§fn cmp(&self, other: &ChainDescription) -> Ordering
fn cmp(&self, other: &ChainDescription) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl OutputType for ChainDescription
impl OutputType for ChainDescription
source§fn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
source§fn resolve<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_: &'life1 ContextSelectionSet<'life2>,
_field: &'life3 Positioned<Field>
) -> Pin<Box<dyn Future<Output = ServerResult<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn resolve<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, _: &'life1 ContextSelectionSet<'life2>, _field: &'life3 Positioned<Field> ) -> Pin<Box<dyn Future<Output = ServerResult<Value>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,
Resolve an output value to
async_graphql::Value.source§fn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
source§impl PartialEq for ChainDescription
impl PartialEq for ChainDescription
source§fn eq(&self, other: &ChainDescription) -> bool
fn eq(&self, other: &ChainDescription) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for ChainDescription
impl PartialOrd for ChainDescription
source§fn partial_cmp(&self, other: &ChainDescription) -> Option<Ordering>
fn partial_cmp(&self, other: &ChainDescription) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl ScalarType for ChainDescription
impl ScalarType for ChainDescription
source§impl Serialize for ChainDescription
impl Serialize for ChainDescription
impl BcsHashable for ChainDescription
impl Copy for ChainDescription
impl Eq for ChainDescription
impl StructuralEq for ChainDescription
impl StructuralPartialEq for ChainDescription
Auto Trait Implementations§
impl RefUnwindSafe for ChainDescription
impl Send for ChainDescription
impl Sync for ChainDescription
impl Unpin for ChainDescription
impl UnwindSafe for ChainDescription
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.