[][src]Struct k8s_csi::v1_3_0::Snapshot

pub struct Snapshot {
    pub size_bytes: i64,
    pub snapshot_id: String,
    pub source_volume_id: String,
    pub creation_time: Option<Timestamp>,
    pub ready_to_use: bool,
}

Information about a specific snapshot.

Fields

size_bytes: i64

This is the complete size of the snapshot in bytes. The purpose of this field is to give CO guidance on how much space is needed to create a volume from this snapshot. The size of the volume MUST NOT be less than the size of the source snapshot. This field is OPTIONAL. If this field is not set, it indicates that this size is unknown. The value of this field MUST NOT be negative and a size of zero means it is unspecified.

snapshot_id: String

The identifier for this snapshot, generated by the plugin. This field is REQUIRED. This field MUST contain enough information to uniquely identify this specific snapshot vs all other snapshots supported by this plugin. This field SHALL be used by the CO in subsequent calls to refer to this snapshot. The SP is NOT responsible for global uniqueness of snapshot_id across multiple SPs.

source_volume_id: String

Identity information for the source volume. Note that creating a snapshot from a snapshot is not supported here so the source has to be a volume. This field is REQUIRED.

creation_time: Option<Timestamp>

Timestamp when the point-in-time snapshot is taken on the storage system. This field is REQUIRED.

ready_to_use: bool

Indicates if a snapshot is ready to use as a volume_content_source in a CreateVolumeRequest. The default value is false. This field is REQUIRED.

Trait Implementations

impl Clone for Snapshot[src]

impl Debug for Snapshot[src]

impl Default for Snapshot[src]

impl Message for Snapshot[src]

impl PartialEq<Snapshot> for Snapshot[src]

impl StructuralPartialEq for Snapshot[src]

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> From<T> for T[src]

impl<T> Instrument for T[src]

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

impl<T> IntoRequest<T> for 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>, 

impl<T> WithSubscriber for T[src]