[−][src]Struct exonum::blockchain::config::InstanceInitParams
Data that is required for initialization of a service instance.
Fields (Non-exhaustive)
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.instance_spec: InstanceSpec
Instance specification.
constructor: Vec<u8>
Constructor argument for the instance.
Methods
impl InstanceInitParams
[src]
pub fn new(
id: InstanceId,
name: impl Into<String>,
artifact: ArtifactId,
constructor: impl BinaryValue
) -> Self
[src]
id: InstanceId,
name: impl Into<String>,
artifact: ArtifactId,
constructor: impl BinaryValue
) -> Self
Generic constructor.
pub fn with_constructor(self, constructor: impl BinaryValue) -> Self
[src]
Converts into InstanceInitParams
with specific constructor.
Trait Implementations
impl BinaryValue for InstanceInitParams
[src]
fn to_bytes(&self) -> Vec<u8>
[src]
fn from_bytes(value: Cow<[u8]>) -> Result<Self, Error>
[src]
fn into_bytes(self) -> Vec<u8>
[src]
impl Clone for InstanceInitParams
[src]
fn clone(&self) -> InstanceInitParams
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for InstanceInitParams
[src]
impl<'de> Deserialize<'de> for InstanceInitParams
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for InstanceInitParams
[src]
impl From<InstanceSpec> for InstanceInitParams
[src]
fn from(instance_spec: InstanceSpec) -> Self
[src]
impl Hash for InstanceInitParams
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl ObjectHash for InstanceInitParams
[src]
fn object_hash(&self) -> Hash
[src]
impl PartialEq<InstanceInitParams> for InstanceInitParams
[src]
fn eq(&self, other: &InstanceInitParams) -> bool
[src]
fn ne(&self, other: &InstanceInitParams) -> bool
[src]
impl ProtobufConvert for InstanceInitParams
[src]
type ProtoStruct = InstanceInitParams
Type generated from the Protobuf definition.
fn from_pb(pb: Self::ProtoStruct) -> Result<Self, Error>
[src]
fn to_pb(&self) -> Self::ProtoStruct
[src]
impl Serialize for InstanceInitParams
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for InstanceInitParams
[src]
impl StructuralPartialEq for InstanceInitParams
[src]
Auto Trait Implementations
impl RefUnwindSafe for InstanceInitParams
impl Send for InstanceInitParams
impl Sync for InstanceInitParams
impl Unpin for InstanceInitParams
impl UnwindSafe for InstanceInitParams
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,