pub struct ChainSpecRuntime {
pub location: AssetLocation,
pub preset: Option<String>,
}
Expand description
Represent a runtime (.wasm) asset location and an optional preset to use for chain-spec generation.
Fields§
§location: AssetLocation
§preset: Option<String>
Implementations§
Source§impl ChainSpecRuntime
impl ChainSpecRuntime
pub fn new(location: AssetLocation) -> Self
pub fn with_preset(location: AssetLocation, preset: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for ChainSpecRuntime
impl Clone for ChainSpecRuntime
Source§fn clone(&self) -> ChainSpecRuntime
fn clone(&self) -> ChainSpecRuntime
Returns a duplicate 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 ChainSpecRuntime
impl Debug for ChainSpecRuntime
Source§impl<'de> Deserialize<'de> for ChainSpecRuntime
impl<'de> Deserialize<'de> for ChainSpecRuntime
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 PartialEq for ChainSpecRuntime
impl PartialEq for ChainSpecRuntime
Source§impl Serialize for ChainSpecRuntime
impl Serialize for ChainSpecRuntime
impl StructuralPartialEq for ChainSpecRuntime
Auto Trait Implementations§
impl Freeze for ChainSpecRuntime
impl RefUnwindSafe for ChainSpecRuntime
impl Send for ChainSpecRuntime
impl Sync for ChainSpecRuntime
impl Unpin for ChainSpecRuntime
impl UnwindSafe for ChainSpecRuntime
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