pub enum ReadResult {
Resolved(Box<ReadModel>),
Members(Vec<RefsModel>),
Ambiguous(Vec<String>),
MemberAmbiguous(Vec<MemberCandidate>),
NotFound,
}Expand description
The outcome of a read query – the refs outcome set unchanged, so the
ambiguity and zero-hit discipline are literally the same code path’s.
Variants§
Resolved(Box<ReadModel>)
Represents Resolved.
Members(Vec<RefsModel>)
A bare-member answer: one resolved-shaped model per declaring type.
Ambiguous(Vec<String>)
Represents Ambiguous.
MemberAmbiguous(Vec<MemberCandidate>)
The refs outcome of the same name, unchanged (see
RefsResult::MemberAmbiguous).
NotFound
Represents NotFound.
Trait Implementations§
Source§impl Clone for ReadResult
impl Clone for ReadResult
Source§impl Debug for ReadResult
impl Debug for ReadResult
Source§impl PartialEq for ReadResult
impl PartialEq for ReadResult
impl StructuralPartialEq for ReadResult
Auto Trait Implementations§
impl Freeze for ReadResult
impl RefUnwindSafe for ReadResult
impl Send for ReadResult
impl Sync for ReadResult
impl Unpin for ReadResult
impl UnsafeUnpin for ReadResult
impl UnwindSafe for ReadResult
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> 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