pub struct SourceSchema {
pub nodes: Vec<NodeSchema>,
pub relations: Vec<RelationSchema>,
}Expand description
Best-effort schema information reported by a source.
Sources may return this from Source::describe_schema() so higher layers
(such as inspection APIs or MCP adapters) can understand the graph shape
without reverse-engineering source-specific configuration.
Fields§
§nodes: Vec<NodeSchema>§relations: Vec<RelationSchema>Implementations§
Trait Implementations§
Source§impl Clone for SourceSchema
impl Clone for SourceSchema
Source§fn clone(&self) -> SourceSchema
fn clone(&self) -> SourceSchema
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 SourceSchema
impl Debug for SourceSchema
Source§impl Default for SourceSchema
impl Default for SourceSchema
Source§fn default() -> SourceSchema
fn default() -> SourceSchema
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SourceSchema
impl<'de> Deserialize<'de> for SourceSchema
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 PartialEq for SourceSchema
impl PartialEq for SourceSchema
Source§fn eq(&self, other: &SourceSchema) -> bool
fn eq(&self, other: &SourceSchema) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SourceSchema
impl Serialize for SourceSchema
impl Eq for SourceSchema
impl StructuralPartialEq for SourceSchema
Auto Trait Implementations§
impl Freeze for SourceSchema
impl RefUnwindSafe for SourceSchema
impl Send for SourceSchema
impl Sync for SourceSchema
impl Unpin for SourceSchema
impl UnsafeUnpin for SourceSchema
impl UnwindSafe for SourceSchema
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.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.