pub struct ScriptSpace { /* private fields */ }Expand description
The script resources as a space: space’s bindings, plus each published SPARQL
script and plan as its own …:result and …:runs entry, carrying its parameters.
Trait Implementations§
Source§impl Space for ScriptSpace
impl Space for ScriptSpace
Source§fn resolve(&self, request: &Request, scope: &Scope) -> Resolution
fn resolve(&self, request: &Request, scope: &Scope) -> Resolution
Resolve a request to an endpoint, or report a miss.
Source§fn entries(&self) -> Option<Vec<SpaceEntry>>
fn entries(&self) -> Option<Vec<SpaceEntry>>
Enumerate this space’s bindings, if it can.
None means the space does
not support enumeration (e.g. a rewrite or a remote space); Some(vec![])
means it is enumerable but empty. The default is None. Read moreSource§fn id(&self) -> Option<Iri>
fn id(&self) -> Option<Iri>
The identity this space claims for itself, if any. The default is
None:
a space is anonymous unless it says otherwise (.named(iri) on every core
combinator). Read moreSource§fn topology(&self) -> Topology
fn topology(&self) -> Topology
This space’s structure as a tree, for
urn:kernel:topology. The default
answers an opaque node carrying the space’s
id: a space that does not say what it encloses is reported
as saying nothing, which is the honest answer — the graph states where
structural knowledge stops rather than implying the space is empty. Every
core combinator overrides it; an overlay that encloses one space should
forward it, as it forwards entries.Auto Trait Implementations§
impl !RefUnwindSafe for ScriptSpace
impl !UnwindSafe for ScriptSpace
impl Freeze for ScriptSpace
impl Send for ScriptSpace
impl Sync for ScriptSpace
impl Unpin for ScriptSpace
impl UnsafeUnpin for ScriptSpace
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