[][src]Struct exonum_supervisor::MigrationRequest

#[non_exhaustive]pub struct MigrationRequest {
    pub new_artifact: ArtifactId,
    pub service: String,
    pub deadline_height: Height,
    pub seed: u64,
}

Request for the service data migration.

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.
new_artifact: ArtifactId

New artifact identifier.

service: String

Name of service for a migration.

deadline_height: Height

The height until which the migration procedure should be completed.

seed: u64

Seed to allow several migrations with the same params.

Methods

impl MigrationRequest[src]

pub fn new(
    new_artifact: ArtifactId,
    service: impl Into<String>,
    deadline_height: Height
) -> Self
[src]

Creates a new migration request.

Trait Implementations

impl BinaryKey for MigrationRequest[src]

impl BinaryValue for MigrationRequest[src]

impl Clone for MigrationRequest[src]

impl Debug for MigrationRequest[src]

impl<'de> Deserialize<'de> for MigrationRequest[src]

impl From<MigrationRequest> for MigrationInfoQuery[src]

impl ObjectHash for MigrationRequest[src]

impl PartialEq<MigrationRequest> for MigrationRequest[src]

impl ProtobufConvert for MigrationRequest[src]

type ProtoStruct = MigrationRequest

Type generated from the Protobuf definition.

impl Serialize for MigrationRequest[src]

impl StructuralPartialEq for MigrationRequest[src]

impl TryFrom<MigrationInfoQuery> for MigrationRequest[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,