pub struct StatusSchedule {
pub period_begin: DateTime,
pub period_end: Option<DateTime>,
pub status: Status,
pub extensions: Extensions,
}Available on crate feature
v2_3_0 only.Expand description
A scheduled status period in the future.
The scheduled status is purely informational. When the status actually changes, the CPO must push an update to the EVSEs
statusfield itself.
Spec: 2.3.0 §mod_locations_statusschedule_class
Fields§
§period_begin: DateTimeBegin of the scheduled period.
period_end: Option<DateTime>End of the scheduled period, if known. A period MAY have no end.
status: StatusStatus value during the scheduled period.
extensions: ExtensionsUndocumented JSON fields, preserved verbatim.
Trait Implementations§
Source§impl Clone for StatusSchedule
impl Clone for StatusSchedule
Source§fn clone(&self) -> StatusSchedule
fn clone(&self) -> StatusSchedule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StatusSchedule
impl Debug for StatusSchedule
Source§impl<'de> Deserialize<'de> for StatusSchedule
impl<'de> Deserialize<'de> for StatusSchedule
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 StatusSchedule
impl JsonSchema for StatusSchedule
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 StatusSchedule
impl PartialEq for StatusSchedule
Source§impl Serialize for StatusSchedule
impl Serialize for StatusSchedule
impl StructuralPartialEq for StatusSchedule
Source§impl Validate for StatusSchedule
impl Validate for StatusSchedule
Auto Trait Implementations§
impl Freeze for StatusSchedule
impl RefUnwindSafe for StatusSchedule
impl Send for StatusSchedule
impl Sync for StatusSchedule
impl Unpin for StatusSchedule
impl UnsafeUnpin for StatusSchedule
impl UnwindSafe for StatusSchedule
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