pub enum RowKey<'a> {
Show 15 variants
MessageQueueContent {
response_id: &'a str,
message_queue_content_id: i64,
},
ToolResponse {
response_id: &'a str,
index: u64,
},
AssistantRefusal {
response_id: &'a str,
index: u64,
},
AssistantReasoning {
response_id: &'a str,
index: u64,
},
AssistantToolCall {
response_id: &'a str,
index: u64,
tool_call_index: u64,
},
AssistantContentText {
response_id: &'a str,
index: u64,
part_index: u64,
},
AssistantContentImage {
response_id: &'a str,
index: u64,
part_index: u64,
},
AssistantContentAudio {
response_id: &'a str,
index: u64,
part_index: u64,
},
AssistantContentVideo {
response_id: &'a str,
index: u64,
part_index: u64,
},
AssistantContentFile {
response_id: &'a str,
index: u64,
part_index: u64,
},
ToolContentText {
response_id: &'a str,
index: u64,
part_index: u64,
},
ToolContentImage {
response_id: &'a str,
index: u64,
part_index: u64,
},
ToolContentAudio {
response_id: &'a str,
index: u64,
part_index: u64,
},
ToolContentVideo {
response_id: &'a str,
index: u64,
part_index: u64,
},
ToolContentFile {
response_id: &'a str,
index: u64,
part_index: u64,
},
}Expand description
Borrowed key that identifies one row’s slot in postgres. Two
RowKeys with equal variant + fields hash identically to an
OwnedRowKey with the matching shape — that invariant lets the
shadow’s hashbrown raw_entry_mut look up by borrowed key without
converting to owned first.
Variants§
MessageQueueContent
message_queue_contents.id is globally unique across
kinds, so the key needs no kind discriminator — only the
id (the kind is recovered from RowValue for write
dispatch).
ToolResponse
AssistantRefusal
AssistantReasoning
AssistantToolCall
AssistantContentText
AssistantContentImage
AssistantContentAudio
AssistantContentVideo
AssistantContentFile
ToolContentText
ToolContentImage
ToolContentAudio
ToolContentVideo
ToolContentFile
Implementations§
Source§impl<'a> RowKey<'a>
impl<'a> RowKey<'a>
pub fn matches_owned(&self, owned: &OwnedRowKey) -> bool
pub fn to_owned_key(&self) -> OwnedRowKey
Trait Implementations§
impl<'a> Eq for RowKey<'a>
Source§impl<'a> PartialEq for RowKey<'a>
impl<'a> PartialEq for RowKey<'a>
impl<'a> StructuralPartialEq for RowKey<'a>
Auto Trait Implementations§
impl<'a> Freeze for RowKey<'a>
impl<'a> RefUnwindSafe for RowKey<'a>
impl<'a> Send for RowKey<'a>
impl<'a> Sync for RowKey<'a>
impl<'a> Unpin for RowKey<'a>
impl<'a> UnsafeUnpin for RowKey<'a>
impl<'a> UnwindSafe for RowKey<'a>
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§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 more