#[non_exhaustive]pub struct LayerAttributesRestrictionsItems {
pub end_day: Option<LayerAttributesRestrictionsItemsEndDay>,
pub end_time: Option<String>,
pub start_day: Option<LayerAttributesRestrictionsItemsStartDay>,
pub start_time: Option<String>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Represents a time restriction within a layer, specifying the days and times when this layer is active or inactive.
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.end_day: Option<LayerAttributesRestrictionsItemsEndDay>
Defines the end day of the restriction within a Layer.
end_time: Option<String>
The time of day the restriction ends (hh:mm:ss).
start_day: Option<LayerAttributesRestrictionsItemsStartDay>
Defines the start day of the restriction within a Layer.
start_time: Option<String>
The time of day the restriction begins (hh:mm:ss).
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl LayerAttributesRestrictionsItems
impl LayerAttributesRestrictionsItems
pub fn new() -> LayerAttributesRestrictionsItems
pub fn end_day(self, value: LayerAttributesRestrictionsItemsEndDay) -> Self
pub fn end_time(self, value: String) -> Self
pub fn start_day(self, value: LayerAttributesRestrictionsItemsStartDay) -> Self
pub fn start_time(self, value: String) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for LayerAttributesRestrictionsItems
impl Clone for LayerAttributesRestrictionsItems
Source§fn clone(&self) -> LayerAttributesRestrictionsItems
fn clone(&self) -> LayerAttributesRestrictionsItems
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'de> Deserialize<'de> for LayerAttributesRestrictionsItems
impl<'de> Deserialize<'de> for LayerAttributesRestrictionsItems
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 PartialEq for LayerAttributesRestrictionsItems
impl PartialEq for LayerAttributesRestrictionsItems
Source§fn eq(&self, other: &LayerAttributesRestrictionsItems) -> bool
fn eq(&self, other: &LayerAttributesRestrictionsItems) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for LayerAttributesRestrictionsItems
Auto Trait Implementations§
impl Freeze for LayerAttributesRestrictionsItems
impl RefUnwindSafe for LayerAttributesRestrictionsItems
impl Send for LayerAttributesRestrictionsItems
impl Sync for LayerAttributesRestrictionsItems
impl Unpin for LayerAttributesRestrictionsItems
impl UnwindSafe for LayerAttributesRestrictionsItems
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