pub struct CrossMemRelationshipEntry {
pub to_schema: String,
pub definitions: Vec<RelationshipDef>,
}Expand description
One outbound cross-mem declaration — a target schema domain (named, never versioned) and the rel-types admitted in that direction.
target_types strings within each definition live in the target
schema’s namespace by construction — the source schema’s loader
accepts them as opaque since the target schema may not be present
at source-schema load time.
Fields§
§to_schema: StringBare name of the target schema — the domain identity. A version
suffix (software@1.0.0) or range (software@^1.0) is rejected
at schema load: cross-mem eligibility is name-based, so the
declaration is satisfied by a target mem pinning any version
of the named schema.
definitions: Vec<RelationshipDef>Trait Implementations§
Source§impl Clone for CrossMemRelationshipEntry
impl Clone for CrossMemRelationshipEntry
Source§fn clone(&self) -> CrossMemRelationshipEntry
fn clone(&self) -> CrossMemRelationshipEntry
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 CrossMemRelationshipEntry
impl Debug for CrossMemRelationshipEntry
Source§impl<'de> Deserialize<'de> for CrossMemRelationshipEntry
impl<'de> Deserialize<'de> for CrossMemRelationshipEntry
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 CrossMemRelationshipEntry
impl JsonSchema for CrossMemRelationshipEntry
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 CrossMemRelationshipEntry
impl RefUnwindSafe for CrossMemRelationshipEntry
impl Send for CrossMemRelationshipEntry
impl Sync for CrossMemRelationshipEntry
impl Unpin for CrossMemRelationshipEntry
impl UnsafeUnpin for CrossMemRelationshipEntry
impl UnwindSafe for CrossMemRelationshipEntry
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