Struct VolumeConfigResponse

Source
pub struct VolumeConfigResponse {
Show 16 fields pub anonymous: Option<bool>, pub created_at: Option<DateTime<Utc>>, pub driver: Option<String>, pub gid: Option<i64>, pub labels: Option<HashMap<String, String>>, pub mount_count: Option<u64>, pub mountpoint: Option<String>, pub name: Option<String>, pub needs_chown: Option<bool>, pub needs_copy_up: Option<bool>, pub options: Option<HashMap<String, String>>, pub scope: Option<String>, pub status: Option<Value>, pub storage_id: Option<String>, pub timeout: Option<u64>, pub uid: Option<i64>,
}

Fields§

§anonymous: Option<bool>

Anonymous indicates that the volume was created as an anonymous volume for a specific container, and will be removed when any container using it is removed.

§created_at: Option<DateTime<Utc>>

CreatedAt is the date and time the volume was created at. This is not stored for older Libpod volumes; if so, it will be omitted.

§driver: Option<String>

Driver is the driver used to create the volume. If set to “local” or “”, the Local driver (Podman built-in code) is used to service the volume; otherwise, a volume plugin with the given name is used to mount and manage the volume.

§gid: Option<i64>

GID is the GID that the volume was created with.

§labels: Option<HashMap<String, String>>

Labels includes the volume’s configured labels, key:value pairs that can be passed during volume creation to provide information for third party tools.

§mount_count: Option<u64>

MountCount is the number of times this volume has been mounted.

§mountpoint: Option<String>

Mountpoint is the path on the host where the volume is mounted.

§name: Option<String>

Name is the name of the volume.

§needs_chown: Option<bool>

NeedsChown indicates that the next time the volume is mounted into a container, the container will chown the volume to the container process UID/GID.

§needs_copy_up: Option<bool>

NeedsCopyUp indicates that the next time the volume is mounted into

§options: Option<HashMap<String, String>>

Options is a set of options that were used when creating the volume. For the Local driver, these are mount options that will be used to determine how a local filesystem is mounted; they are handled as parameters to Mount in a manner described in the volume create manpage. For non-local drivers, these are passed as-is to the volume plugin.

§scope: Option<String>

Scope is unused and provided solely for Docker compatibility. It is unconditionally set to “local”.

§status: Option<Value>

Status is used to return information on the volume’s current state, if the volume was created using a volume plugin (uses a Driver that is not the local driver). Status is provided to us by an external program, so no guarantees are made about its format or contents. Further, it is an optional field, so it may not be set even in cases where a volume plugin is in use.

§storage_id: Option<String>

StorageID is the ID of the container backing the volume in c/storage. Only used with Image Volumes.

§timeout: Option<u64>

Timeout is the specified driver timeout if given

§uid: Option<i64>

UID is the UID that the volume was created with.

Trait Implementations§

Source§

impl Clone for VolumeConfigResponse

Source§

fn clone(&self) -> VolumeConfigResponse

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for VolumeConfigResponse

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for VolumeConfigResponse

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<VolumeConfigResponse, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for VolumeConfigResponse

Source§

fn eq(&self, other: &VolumeConfigResponse) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for VolumeConfigResponse

Source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for VolumeConfigResponse

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

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

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T