pub struct NamedVolumeSpec {
pub name: Option<String>,
pub pool: Option<String>,
pub config: BTreeMap<String, String>,
pub external: bool,
}Expand description
A named custom storage volume.
Fields§
§name: Option<String>The incus volume name. Default: <project>_<key>, or the key itself
for an external volume.
pool: Option<String>Storage pool. auto (default) means the same pool the sandbox uses
(storage), resolved the same way.
config: BTreeMap<String, String>Volume config keys (e.g. size: 10GiB), applied only at creation.
external: boolThe volume must already exist; isb never creates it.
Trait Implementations§
Source§impl Clone for NamedVolumeSpec
impl Clone for NamedVolumeSpec
Source§impl Debug for NamedVolumeSpec
impl Debug for NamedVolumeSpec
Source§impl Default for NamedVolumeSpec
impl Default for NamedVolumeSpec
Source§impl<'de> Deserialize<'de> for NamedVolumeSpec
impl<'de> Deserialize<'de> for NamedVolumeSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for NamedVolumeSpec
impl JsonSchema for NamedVolumeSpec
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for NamedVolumeSpec
impl PartialEq for NamedVolumeSpec
Source§impl Serialize for NamedVolumeSpec
impl Serialize for NamedVolumeSpec
impl StructuralPartialEq for NamedVolumeSpec
Auto Trait Implementations§
impl Freeze for NamedVolumeSpec
impl RefUnwindSafe for NamedVolumeSpec
impl Send for NamedVolumeSpec
impl Sync for NamedVolumeSpec
impl Unpin for NamedVolumeSpec
impl UnsafeUnpin for NamedVolumeSpec
impl UnwindSafe for NamedVolumeSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more