pub struct Volume {
pub id: VolumeId,
pub region: WorldBox,
pub role: VolumeRole,
pub note: Option<String>,
pub block: Option<String>,
}Expand description
A mass the whole itself owns.
Fields§
§id: VolumeIdVolume id (volume/<kebab>), unique within the plan.
region: WorldBoxThe cells it covers.
role: VolumeRoleWhat the whole is doing with them.
note: Option<String>What this mass is, for a reader of the plan.
block: Option<String>The block state this volume is made of. Absent, the block of its kind
comes from the plan’s fill (spec-0098 §2b): a massif is the
solid fill’s block, or the open fill’s below; a ground is the
open fill’s surface over below, or the solid fill’s block. A
clearance is air and names no block (DW0193 if it does).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Volume
impl<'de> Deserialize<'de> for Volume
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
impl Eq for Volume
Source§impl JsonSchema for Volume
impl JsonSchema for Volume
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 moreimpl StructuralPartialEq for Volume
Auto Trait Implementations§
impl Freeze for Volume
impl RefUnwindSafe for Volume
impl Send for Volume
impl Sync for Volume
impl Unpin for Volume
impl UnsafeUnpin for Volume
impl UnwindSafe for Volume
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