pub struct ExemplarRelation {
pub to: String,
pub rel_type: String,
pub description: Option<String>,
}Expand description
One relationship entry on an Exemplar.
Fields§
§to: StringPlaceholder target: a bare slug, scoped to the exemplar’s own (virtual) mem at validation time.
rel_type: StringRelationship type (UPPER_SNAKE_CASE; validated against the schema’s declared vocabulary).
description: Option<String>Optional per-edge description — validated against the
rel-type’s per_edge_description posture.
Trait Implementations§
Source§impl Clone for ExemplarRelation
impl Clone for ExemplarRelation
Source§fn clone(&self) -> ExemplarRelation
fn clone(&self) -> ExemplarRelation
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 ExemplarRelation
impl Debug for ExemplarRelation
Source§impl<'de> Deserialize<'de> for ExemplarRelation
impl<'de> Deserialize<'de> for ExemplarRelation
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 ExemplarRelation
impl JsonSchema for ExemplarRelation
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 moreAuto Trait Implementations§
impl Freeze for ExemplarRelation
impl RefUnwindSafe for ExemplarRelation
impl Send for ExemplarRelation
impl Sync for ExemplarRelation
impl Unpin for ExemplarRelation
impl UnsafeUnpin for ExemplarRelation
impl UnwindSafe for ExemplarRelation
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