pub struct VolumeConfigResponse {
Show 15 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, RandomState>>, 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, RandomState>>, pub scope: Option<String>, pub status: Option<HashMap<String, Value, RandomState>>, pub timeout: Option<i64>, 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, RandomState>>

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, RandomState>>

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<HashMap<String, Value, RandomState>>

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.

§timeout: Option<i64>

Timeout is the specified driver timeout if given

§uid: Option<i64>

UID is the UID that the volume was created with.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

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

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more