pub enum BatchIdResolution {
Resolved(String),
Ambiguous(Vec<String>),
NotFound,
}Expand description
Outcome of resolving a (possibly abbreviated) batch id prefix against the ledger.
Returned by IngestLedger::resolve_batch_id to support git-style unambiguous prefix
matching for zeph knowledge rollback --batch-id, since zeph knowledge status only
prints an 8-character prefix of each import_batch_id.
Variants§
Resolved(String)
Exactly one batch id matches the supplied prefix (or matches it exactly).
Ambiguous(Vec<String>)
More than one batch id shares the supplied prefix; lists every match.
NotFound
No batch id in the ledger starts with the supplied prefix.
Trait Implementations§
Source§impl Clone for BatchIdResolution
impl Clone for BatchIdResolution
Source§fn clone(&self) -> BatchIdResolution
fn clone(&self) -> BatchIdResolution
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 moreSource§impl Debug for BatchIdResolution
impl Debug for BatchIdResolution
impl Eq for BatchIdResolution
Source§impl PartialEq for BatchIdResolution
impl PartialEq for BatchIdResolution
Source§fn eq(&self, other: &BatchIdResolution) -> bool
fn eq(&self, other: &BatchIdResolution) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BatchIdResolution
Auto Trait Implementations§
impl Freeze for BatchIdResolution
impl RefUnwindSafe for BatchIdResolution
impl Send for BatchIdResolution
impl Sync for BatchIdResolution
impl Unpin for BatchIdResolution
impl UnsafeUnpin for BatchIdResolution
impl UnwindSafe for BatchIdResolution
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request