[−][src]Struct exonum::runtime::migrations::InstanceMigration
Information about a migration of a service instance.
Fields (Non-exhaustive)
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.target: ArtifactId
Migration target to obtain migration scripts from. This artifact must be deployed on the blockchain.
end_version: Version
Version of the instance data after the migration is completed.
Note that it does not necessarily match the version of target
,
but should be not greater.
completed_hash: Option<Hash>
Consensus-wide outcome of the migration, in the form of the aggregation hash of the migrated data. The lack of value signifies that the network has not yet reached consensus about the migration outcome.
Methods
impl InstanceMigration
[src]
pub fn is_completed(&self) -> bool
[src]
Checks if the migration is considered completed, i.e., has migration state agreed among all nodes in the blockchain network.
Trait Implementations
impl BinaryValue for InstanceMigration
[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 InstanceMigration
[src]
fn clone(&self) -> InstanceMigration
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for InstanceMigration
[src]
impl<'de> Deserialize<'de> for InstanceMigration
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Hash for InstanceMigration
[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 PartialEq<InstanceMigration> for InstanceMigration
[src]
fn eq(&self, other: &InstanceMigration) -> bool
[src]
fn ne(&self, other: &InstanceMigration) -> bool
[src]
impl ProtobufConvert for InstanceMigration
[src]
type ProtoStruct = InstanceMigration
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 InstanceMigration
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for InstanceMigration
[src]
Auto Trait Implementations
impl RefUnwindSafe for InstanceMigration
impl Send for InstanceMigration
impl Sync for InstanceMigration
impl Unpin for InstanceMigration
impl UnwindSafe for InstanceMigration
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>,