pub struct GraphView<'a> { /* private fields */ }Expand description
A borrowing view over a selected slice of the graph. Serializes to
{"entities":[...],"relations":[...]}.
Implementations§
Source§impl GraphView<'_>
impl GraphView<'_>
Sourcepub fn to_owned_out(&self) -> KnowledgeGraphOut
pub fn to_owned_out(&self) -> KnowledgeGraphOut
Materialize into the owned KnowledgeGraphOut. Used by the direct
(non-serializing) callers and tests; the server’s read handlers
serialize the view directly instead.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for GraphView<'a>
impl<'a> RefUnwindSafe for GraphView<'a>
impl<'a> Send for GraphView<'a>
impl<'a> Sync for GraphView<'a>
impl<'a> Unpin for GraphView<'a>
impl<'a> UnsafeUnpin for GraphView<'a>
impl<'a> UnwindSafe for GraphView<'a>
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