pub enum RelatedToOutcome {
Ids(Vec<String>),
DeniedYieldEmpty,
}Expand description
What a $relatedTo resolved to.
Not Vec<String> with an empty vector standing in for “denied”, because the two have to be
distinguishable at the call site even though they narrow the query identically. A caller who
cannot read the owning object gets an empty objectId $in rather than an error
(DatabaseController.js:1209-1213), so the relation cannot be used as a membership oracle.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for RelatedToOutcome
impl Clone for RelatedToOutcome
Source§fn clone(&self) -> RelatedToOutcome
fn clone(&self) -> RelatedToOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Freeze for RelatedToOutcome
impl RefUnwindSafe for RelatedToOutcome
impl Send for RelatedToOutcome
impl Sync for RelatedToOutcome
impl Unpin for RelatedToOutcome
impl UnsafeUnpin for RelatedToOutcome
impl UnwindSafe for RelatedToOutcome
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