pub struct TranscriptLink {
pub memory_id: String,
pub transcript_id: String,
pub span_start: Option<i64>,
pub span_end: Option<i64>,
}Expand description
v0.7.0 I2 — provenance edge between a memory and a transcript span.
Establishes that memory_id was extracted (or otherwise derived)
from the transcript identified by transcript_id. The optional
(span_start, span_end) byte offsets address a sub-region of the
decompressed transcript; both None means “the whole transcript”.
Offsets are 0-based byte positions into the UTF-8 decompressed
bytes, half-open [start, end) per the usual Rust slicing
convention.
The PRIMARY KEY on the join table is (memory_id, transcript_id),
so a memory can only be linked to a given transcript once. Callers
that need to record multiple disjoint spans from the same transcript
should merge them into a single bounding pair upstream.
Fields§
§memory_id: String§transcript_id: String§span_start: Option<i64>§span_end: Option<i64>Trait Implementations§
Source§impl Clone for TranscriptLink
impl Clone for TranscriptLink
Source§fn clone(&self) -> TranscriptLink
fn clone(&self) -> TranscriptLink
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 TranscriptLink
impl Debug for TranscriptLink
impl Eq for TranscriptLink
Source§impl PartialEq for TranscriptLink
impl PartialEq for TranscriptLink
Source§fn eq(&self, other: &TranscriptLink) -> bool
fn eq(&self, other: &TranscriptLink) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TranscriptLink
Auto Trait Implementations§
impl Freeze for TranscriptLink
impl RefUnwindSafe for TranscriptLink
impl Send for TranscriptLink
impl Sync for TranscriptLink
impl Unpin for TranscriptLink
impl UnsafeUnpin for TranscriptLink
impl UnwindSafe for TranscriptLink
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<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<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.impl<T> ErasedDestructor for Twhere
T: 'static,
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 more