pub struct PartitionSpec {
pub name: Option<String>,
pub kind: String,
pub size: String,
pub filesystem: Option<FilesystemSpec>,
}Expand description
One partition in a Spec::partitions list.
The optional filesystem goes in a nested [partitions.filesystem]
table (not flattened) so the partition’s own type key doesn’t collide
with the filesystem’s type key:
[[partitions]]
name = "root"
type = "linux"
size = "remaining"
[partitions.filesystem]
type = "ext4"
source = "./rootfs"Fields§
§name: Option<String>§kind: StringPartition type: "esp", "linux", "linux-swap", "bios-boot",
"fat", or a raw "0x83" / GPT UUID string.
size: StringPartition size, e.g. "256MiB" or "remaining".
filesystem: Option<FilesystemSpec>Filesystem to create inside this partition (optional — a partition can be left raw).
Trait Implementations§
Source§impl Debug for PartitionSpec
impl Debug for PartitionSpec
Source§impl<'de> Deserialize<'de> for PartitionSpec
impl<'de> Deserialize<'de> for PartitionSpec
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
Auto Trait Implementations§
impl Freeze for PartitionSpec
impl RefUnwindSafe for PartitionSpec
impl Send for PartitionSpec
impl Sync for PartitionSpec
impl Unpin for PartitionSpec
impl UnsafeUnpin for PartitionSpec
impl UnwindSafe for PartitionSpec
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