pub struct LabelGuide {
pub key: String,
pub words: String,
pub meaning: Option<String>,
}Expand description
LabelGuide holds one attribution label of the schema.
Fields§
§key: Stringkey is the label’s key, human or agent.
words: Stringwords are the words that a document writes between the label’s
square brackets: sokf’s words for the label in the language of the
schema, or else the key.
meaning: Option<String>meaning is sokf’s sentence that says what the label means, in the
language of the schema. It is absent where sokf’s texts hold none in
that language.
Trait Implementations§
Source§impl Clone for LabelGuide
impl Clone for LabelGuide
Source§impl Debug for LabelGuide
impl Debug for LabelGuide
impl Eq for LabelGuide
Source§impl JsonSchema for LabelGuide
impl JsonSchema for LabelGuide
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 LabelGuide
impl PartialEq for LabelGuide
Source§impl Serialize for LabelGuide
impl Serialize for LabelGuide
impl StructuralPartialEq for LabelGuide
Auto Trait Implementations§
impl Forget for LabelGuide
impl Freeze for LabelGuide
impl Move for LabelGuide
impl RefUnwindSafe for LabelGuide
impl Send for LabelGuide
impl Sync for LabelGuide
impl Unpin for LabelGuide
impl UnsafeUnpin for LabelGuide
impl UnwindSafe for LabelGuide
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.