pub struct FrameSpec {
pub records: Option<u64>,
pub step_ms: Option<u64>,
pub jitter_ms: Option<u64>,
pub keyframe_every: Option<u64>,
pub deadband: BTreeMap<String, DeadbandSpec>,
}Expand description
frame = { records, step_ms, jitter_ms, keyframe_every, deadband }
(core §7.7, draft 4), as written: its bounds are E048’s, never the
schema’s, so a value out of range is a lint and not a load failure.
Fields§
§records: Option<u64>The most records one frame holds, 1 to 256; 1 when absent.
step_ms: Option<u64>Record i is scheduled step_ms × i after record 0: 1 to 2^32 − 1,
given exactly when records is above 1.
jitter_ms: Option<u64>How far a scheduled record may lie from its instant: 0 to
step_ms / 2, only with step_ms; 0 when absent.
keyframe_every: Option<u64>A full record at least once every this many records, 1 to 65,536; 1 when absent.
deadband: BTreeMap<String, DeadbandSpec>A field’s name → its deadband.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FrameSpec
impl<'de> Deserialize<'de> for FrameSpec
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 FrameSpec
Source§impl JsonSchema for FrameSpec
impl JsonSchema for FrameSpec
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 FrameSpec
Auto Trait Implementations§
impl Forget for FrameSpec
impl Freeze for FrameSpec
impl RefUnwindSafe for FrameSpec
impl Send for FrameSpec
impl Sync for FrameSpec
impl Unpin for FrameSpec
impl UnsafeUnpin for FrameSpec
impl UnwindSafe for FrameSpec
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more