pub struct Update {
pub base_iri: Option<Iri<String>>,
pub operations: Vec<GraphUpdateOperation>,
}
Expand description
A parsed SPARQL update.
use spargebra::Update;
let update_str = "CLEAR ALL ;";
let update = Update::parse(update_str, None)?;
assert_eq!(update.to_string().trim(), update_str);
assert_eq!(update.to_sse(), "(update (clear all))");
Fields§
§base_iri: Option<Iri<String>>
The update base IRI.
operations: Vec<GraphUpdateOperation>
The update operations.
Implementations§
Trait Implementations§
impl Eq for Update
impl StructuralPartialEq for Update
Auto Trait Implementations§
impl Freeze for Update
impl RefUnwindSafe for Update
impl Send for Update
impl Sync for Update
impl Unpin for Update
impl UnwindSafe for Update
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