Type Alias sp_genesis_builder::PresetId
source · pub type PresetId = RuntimeString;
Expand description
The type representing preset ID.
Aliased Type§
enum PresetId {
Borrowed(&'static str),
Owned(String),
}
Variants§
Borrowed(&'static str)
The borrowed mode that wraps a &'static str
.
Owned(String)
The owned mode that wraps a String
.
Trait Implementations
source§impl AsRef<[u8]> for RuntimeString
impl AsRef<[u8]> for RuntimeString
source§impl Clone for RuntimeString
impl Clone for RuntimeString
source§fn clone(&self) -> RuntimeString
fn clone(&self) -> RuntimeString
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 RuntimeString
impl Debug for RuntimeString
source§impl Decode for RuntimeString
impl Decode for RuntimeString
source§fn decode<I>(value: &mut I) -> Result<RuntimeString, Error>where
I: Input,
fn decode<I>(value: &mut I) -> Result<RuntimeString, Error>where
I: Input,
Attempt to deserialise the value from input.
source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
source§impl Default for RuntimeString
impl Default for RuntimeString
source§fn default() -> RuntimeString
fn default() -> RuntimeString
Returns the “default value” for a type. Read more
source§impl Deref for RuntimeString
impl Deref for RuntimeString
source§impl<'de> Deserialize<'de> for RuntimeString
impl<'de> Deserialize<'de> for RuntimeString
source§fn deserialize<D>(
de: D,
) -> Result<RuntimeString, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
de: D,
) -> Result<RuntimeString, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for RuntimeString
impl Display for RuntimeString
source§impl Encode for RuntimeString
impl Encode for RuntimeString
source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
source§fn encode_to<T>(&self, dest: &mut T)
fn encode_to<T>(&self, dest: &mut T)
Convert self to a slice and append it to the destination.
source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
source§impl From<&'static str> for RuntimeString
impl From<&'static str> for RuntimeString
source§fn from(data: &'static str) -> RuntimeString
fn from(data: &'static str) -> RuntimeString
Converts to this type from the input type.
source§impl PartialEq for RuntimeString
impl PartialEq for RuntimeString
source§fn eq(&self, other: &RuntimeString) -> bool
fn eq(&self, other: &RuntimeString) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for RuntimeString
impl Serialize for RuntimeString
source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more