pub struct DatasetRestriction {
pub default_graphs: Vec<String>,
pub named_graphs: Vec<String>,
}Expand description
SPARQL dataset restriction from FROM / FROM NAMED clauses.
When present, restricts which graphs are visible to a triple scan:
default_graphs: IRIs whose union forms the default graph (basic patterns).named_graphs: IRIs that enumerate the available named graphs (GRAPH patterns).
Fields§
§default_graphs: Vec<String>FROM IRIs: the default graph is the union of these named graphs. Empty means no FROM clause was specified (unrestricted default graph).
named_graphs: Vec<String>FROM NAMED IRIs: only these named graphs are available to GRAPH patterns. Empty means no FROM NAMED clause was specified (all named graphs visible).
Trait Implementations§
Source§impl Clone for DatasetRestriction
impl Clone for DatasetRestriction
Source§fn clone(&self) -> DatasetRestriction
fn clone(&self) -> DatasetRestriction
Returns a duplicate of the value. Read more
1.0.0 · 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 DatasetRestriction
impl Debug for DatasetRestriction
Source§impl Default for DatasetRestriction
impl Default for DatasetRestriction
Source§fn default() -> DatasetRestriction
fn default() -> DatasetRestriction
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DatasetRestriction
impl RefUnwindSafe for DatasetRestriction
impl Send for DatasetRestriction
impl Sync for DatasetRestriction
impl Unpin for DatasetRestriction
impl UnsafeUnpin for DatasetRestriction
impl UnwindSafe for DatasetRestriction
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more