pub struct ImportBatchId(/* private fields */);Expand description
Opaque identifier for a single ingest run.
Used as a rollback key: all entities and edges written during one ingest_documents
call share the same ImportBatchId, so the entire batch can be removed atomically
via zeph knowledge rollback --batch-id <id>.
The underlying format is a UUIDv4 string, consistent with the import_batch_id column
documented in super::ledger::IngestLedger and with the rollback CLI (which treats
the column as an opaque TEXT key). ULID literals appear in ledger doctests as
illustrative placeholders only — the authoritative format in knowledge.rs is
uuid::Uuid::new_v4().to_string().
§Examples
use zeph_memory::graph::ingest::ImportBatchId;
let id = ImportBatchId::new();
println!("batch: {id}");Implementations§
Trait Implementations§
Source§impl Clone for ImportBatchId
impl Clone for ImportBatchId
Source§fn clone(&self) -> ImportBatchId
fn clone(&self) -> ImportBatchId
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 ImportBatchId
impl Debug for ImportBatchId
Source§impl Default for ImportBatchId
impl Default for ImportBatchId
Source§impl Display for ImportBatchId
impl Display for ImportBatchId
impl Eq for ImportBatchId
Source§impl Hash for ImportBatchId
impl Hash for ImportBatchId
Source§impl PartialEq for ImportBatchId
impl PartialEq for ImportBatchId
Source§fn eq(&self, other: &ImportBatchId) -> bool
fn eq(&self, other: &ImportBatchId) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ImportBatchId
Auto Trait Implementations§
impl Freeze for ImportBatchId
impl RefUnwindSafe for ImportBatchId
impl Send for ImportBatchId
impl Sync for ImportBatchId
impl Unpin for ImportBatchId
impl UnsafeUnpin for ImportBatchId
impl UnwindSafe for ImportBatchId
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