pub struct ClockDefinition {
pub id: ClockTypeId,
pub value_schema: Value,
pub step_schema: Value,
}Fields§
§id: ClockTypeId§value_schema: Value§step_schema: ValueImplementations§
Source§impl ClockDefinition
impl ClockDefinition
pub fn for_clock<C: Clock>(id: ClockTypeId) -> Self
Trait Implementations§
Source§impl Clone for ClockDefinition
impl Clone for ClockDefinition
Source§impl Debug for ClockDefinition
impl Debug for ClockDefinition
Source§impl<'de> Deserialize<'de> for ClockDefinition
impl<'de> Deserialize<'de> for ClockDefinition
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 ClockDefinition
impl JsonSchema for ClockDefinition
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 ClockDefinition
impl PartialEq for ClockDefinition
Source§impl Serialize for ClockDefinition
impl Serialize for ClockDefinition
impl StructuralPartialEq for ClockDefinition
Auto Trait Implementations§
impl Freeze for ClockDefinition
impl RefUnwindSafe for ClockDefinition
impl Send for ClockDefinition
impl Sync for ClockDefinition
impl Unpin for ClockDefinition
impl UnsafeUnpin for ClockDefinition
impl UnwindSafe for ClockDefinition
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