pub struct Analysis {
pub form: Form,
pub parameters: Vec<Parameter>,
pub graphs: BTreeSet<String>,
pub any_graph: bool,
pub update_reads: bool,
}Expand description
What a SPARQL script’s text says about itself, read from the parsed query.
Fields§
§form: FormIts form.
parameters: Vec<Parameter>Its declared parameters, in declaration order.
graphs: BTreeSet<String>For a query: the graphs it reads that the text fixes. For an update: the one graph it writes.
any_graph: boolWhether it also reads a graph only a run decides (GRAPH ?g): the caller’s
readable union.
update_reads: boolFor an update: whether it reads its graph too (it has a WHERE).
Implementations§
Source§impl Analysis
impl Analysis
Sourcepub fn requires(&self) -> BTreeSet<String>
pub fn requires(&self) -> BTreeSet<String>
The capability its runs need, DERIVED from the text: never declared by an author.
A query: urn:cap:store:read:graph:<g> for each graph it fixes, and the family
CAP_READ_GRAPH when it reads the caller’s readable union. An update:
urn:cap:store:write:graph:<g> for its graph, and urn:cap:store:read:graph:<g>
when it has a WHERE (the store’s own rule).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Analysis
impl<'de> Deserialize<'de> for Analysis
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
impl Eq for Analysis
impl StructuralPartialEq for Analysis
Auto Trait Implementations§
impl Freeze for Analysis
impl RefUnwindSafe for Analysis
impl Send for Analysis
impl Sync for Analysis
impl Unpin for Analysis
impl UnsafeUnpin for Analysis
impl UnwindSafe for Analysis
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