#[non_exhaustive]pub struct Layer {
pub attributes: Option<LayerAttributes>,
pub id: Option<String>,
pub relationships: Option<LayerRelationships>,
pub type_: LayerType,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Encapsulates a layer resource, holding attributes like rotation details, plus relationships to the members covering that layer.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.attributes: Option<LayerAttributes>
Describes key properties of a Layer, including rotation details, name, start/end times, and any restrictions.
id: Option<String>
A unique identifier for this layer.
relationships: Option<LayerRelationships>
Holds references to objects related to the Layer entity, such as its members.
type_: LayerType
Layers resource type.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl Layer
impl Layer
pub fn new(type_: LayerType) -> Layer
pub fn attributes(self, value: LayerAttributes) -> Self
pub fn id(self, value: String) -> Self
pub fn relationships(self, value: LayerRelationships) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Layer
impl<'de> Deserialize<'de> for Layer
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 StructuralPartialEq for Layer
Auto Trait Implementations§
impl Freeze for Layer
impl RefUnwindSafe for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl UnwindSafe for Layer
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