#[non_exhaustive]pub struct SourceRange {
pub stream: StreamRef,
pub first: RecordPosition,
pub last: RecordPosition,
}Expand description
The inclusive raw-record range a durable-sourced view event folded from —
the reconciliation token: re-folding the cited records from the canonical
fold state immediately before first — appended host-death terminals seed
from the end-of-records state — reproduces the event. In v1 it is an
opaque provenance token: no wire method reads what it points at.
Ephemeral-sourced events (item/delta, and an item/started that opens on
an ephemeral record) carry no sourceRange — ephemeral records may be
evicted by retention.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.stream: StreamRefThe stream the folded records live on.
first: RecordPositionThe first record of the inclusive range.
last: RecordPositionThe last record of the inclusive range; equal to first for an event
folded from one record.
Trait Implementations§
Source§impl Clone for SourceRange
impl Clone for SourceRange
Source§impl Debug for SourceRange
impl Debug for SourceRange
Source§impl<'de> Deserialize<'de> for SourceRange
impl<'de> Deserialize<'de> for SourceRange
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SourceRange
Source§impl PartialEq for SourceRange
impl PartialEq for SourceRange
Source§impl Serialize for SourceRange
impl Serialize for SourceRange
impl StructuralPartialEq for SourceRange
Auto Trait Implementations§
impl Forget for SourceRange
impl Freeze for SourceRange
impl Move for SourceRange
impl RefUnwindSafe for SourceRange
impl Send for SourceRange
impl Sync for SourceRange
impl Unpin for SourceRange
impl UnsafeUnpin for SourceRange
impl UnwindSafe for SourceRange
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