pub struct RequiredOutgoing {
pub relationships: Vec<String>,
pub cardinality: RequiredCardinality,
}Expand description
One outgoing-edge requirement block on a type definition. Lists one
or more relationship names and a cardinality constraint they must
jointly satisfy. The schema author groups multiple alternative
relationships into a single block when “any of these” satisfies the
rule (e.g. [CHOSEN, REJECTED] together with at_least_one would
require at least one outgoing edge across both names — but the
planning schema lists each as its own block instead, so each block
gets its own warning entry).
Fields§
§relationships: Vec<String>Edge names the rule applies to. Loader validates each against
the schema’s declared relationship vocabulary; unknown names
raise SchemaLoadError::UndeclaredRelationship.
cardinality: RequiredCardinalityImplementations§
Trait Implementations§
Source§impl Clone for RequiredOutgoing
impl Clone for RequiredOutgoing
Source§fn clone(&self) -> RequiredOutgoing
fn clone(&self) -> RequiredOutgoing
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 RequiredOutgoing
impl Debug for RequiredOutgoing
Source§impl<'de> Deserialize<'de> for RequiredOutgoing
impl<'de> Deserialize<'de> for RequiredOutgoing
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 RequiredOutgoing
impl JsonSchema for RequiredOutgoing
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 RequiredOutgoing
impl RefUnwindSafe for RequiredOutgoing
impl Send for RequiredOutgoing
impl Sync for RequiredOutgoing
impl Unpin for RequiredOutgoing
impl UnsafeUnpin for RequiredOutgoing
impl UnwindSafe for RequiredOutgoing
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