pub enum RecordKind {
Card,
Eval,
}Expand description
The two record kinds, as they appear in URLs (/cards, /evals) and in
the type column of the store. Everything that differs between a Card
and an Eval (its schema, its facets, its semantic rules) is keyed on this.
Variants§
Card
A Card: what was measured, how, and what the score was.
Eval
An Eval: the material a Card was measured from.
Implementations§
Trait Implementations§
Source§impl Clone for RecordKind
impl Clone for RecordKind
impl Copy for RecordKind
Source§impl Debug for RecordKind
impl Debug for RecordKind
Source§impl<'de> Deserialize<'de> for RecordKind
impl<'de> Deserialize<'de> for RecordKind
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 RecordKind
Source§impl Hash for RecordKind
impl Hash for RecordKind
Source§impl JsonSchema for RecordKind
impl JsonSchema for RecordKind
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 RecordKind
impl PartialEq for RecordKind
Source§impl Serialize for RecordKind
impl Serialize for RecordKind
impl StructuralPartialEq for RecordKind
Auto Trait Implementations§
impl Freeze for RecordKind
impl RefUnwindSafe for RecordKind
impl Send for RecordKind
impl Sync for RecordKind
impl Unpin for RecordKind
impl UnsafeUnpin for RecordKind
impl UnwindSafe for RecordKind
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