Enum stam::Assignment
source · pub enum Assignment<'a> {
Id(&'a str),
Target {
name: &'a str,
offset: Option<Offset>,
},
ComplexTarget(SelectorKind),
Data {
set: &'a str,
key: &'a str,
value: DataValue,
},
Text(&'a str),
Filename(&'a str),
}Expand description
An assignemnt is a part of an ADD Query that assigns data to a new annotation
Variants§
Id(&'a str)
Constrain the selection (type is determined by the query result type) to one instance with a specific identifier (ID keyword in STAMQL).
Target
ComplexTarget(SelectorKind)
Data
Text(&'a str)
Filename(&'a str)
Trait Implementations§
source§impl<'a> Clone for Assignment<'a>
impl<'a> Clone for Assignment<'a>
source§fn clone(&self) -> Assignment<'a>
fn clone(&self) -> Assignment<'a>
Returns a copy 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 moreAuto Trait Implementations§
impl<'a> Freeze for Assignment<'a>
impl<'a> RefUnwindSafe for Assignment<'a>
impl<'a> Send for Assignment<'a>
impl<'a> Sync for Assignment<'a>
impl<'a> Unpin for Assignment<'a>
impl<'a> UnwindSafe for Assignment<'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
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