pub enum EffectTarget {
Field(&'static str),
Row(&'static str),
}Expand description
What an effect is offered on, bound to it: a collection’s items, or a declared row type’s rows. The two are one thing — an effect offered on an entity of a declared type, with the entity’s id bound — declared either beside the document that holds the items, or on the type of rows that live outside any document.
Variants§
Field(&'static str)
The collection field whose items the effect is offered on
(#[effect(item = connections)]).
Row(&'static str)
The kind of the RowType whose rows the
effect is offered on (#[effect(on = Process)]).
Trait Implementations§
Source§impl Clone for EffectTarget
impl Clone for EffectTarget
impl Copy for EffectTarget
Source§impl Debug for EffectTarget
impl Debug for EffectTarget
impl Eq for EffectTarget
Source§impl PartialEq for EffectTarget
impl PartialEq for EffectTarget
impl StructuralPartialEq for EffectTarget
Auto Trait Implementations§
impl Forget for EffectTarget
impl Freeze for EffectTarget
impl Move for EffectTarget
impl RefUnwindSafe for EffectTarget
impl Send for EffectTarget
impl Sync for EffectTarget
impl Unpin for EffectTarget
impl UnsafeUnpin for EffectTarget
impl UnwindSafe for EffectTarget
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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