pub enum RowKey<'a> {
Show 41 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,
},
RequestUserContentText {
response_id: &'a str,
index: u64,
part_index: u64,
},
RequestUserContentImage {
response_id: &'a str,
index: u64,
part_index: u64,
},
RequestUserContentAudio {
response_id: &'a str,
index: u64,
part_index: u64,
},
RequestUserContentVideo {
response_id: &'a str,
index: u64,
part_index: u64,
},
RequestUserContentFile {
response_id: &'a str,
index: u64,
part_index: u64,
},
RequestAssistantRefusal {
response_id: &'a str,
index: u64,
},
RequestAssistantReasoning {
response_id: &'a str,
index: u64,
},
RequestAssistantToolCall {
response_id: &'a str,
index: u64,
tool_call_index: u64,
},
RequestAssistantContentText {
response_id: &'a str,
index: u64,
part_index: u64,
},
RequestAssistantContentImage {
response_id: &'a str,
index: u64,
part_index: u64,
},
RequestAssistantContentAudio {
response_id: &'a str,
index: u64,
part_index: u64,
},
RequestAssistantContentVideo {
response_id: &'a str,
index: u64,
part_index: u64,
},
RequestAssistantContentFile {
response_id: &'a str,
index: u64,
part_index: u64,
},
RequestTool {
response_id: &'a str,
index: u64,
},
RequestToolContentText {
response_id: &'a str,
index: u64,
part_index: u64,
},
RequestToolContentImage {
response_id: &'a str,
index: u64,
part_index: u64,
},
RequestToolContentAudio {
response_id: &'a str,
index: u64,
part_index: u64,
},
RequestToolContentVideo {
response_id: &'a str,
index: u64,
part_index: u64,
},
RequestToolContentFile {
response_id: &'a str,
index: u64,
part_index: u64,
},
RequestVectorChoice {
response_id: &'a str,
choice_index: u64,
},
RequestVectorChoiceContentText {
response_id: &'a str,
choice_index: u64,
part_index: u64,
},
RequestVectorChoiceContentImage {
response_id: &'a str,
choice_index: u64,
part_index: u64,
},
RequestVectorChoiceContentAudio {
response_id: &'a str,
choice_index: u64,
part_index: u64,
},
RequestVectorChoiceContentVideo {
response_id: &'a str,
choice_index: u64,
part_index: u64,
},
RequestVectorChoiceContentFile {
response_id: &'a str,
choice_index: u64,
part_index: u64,
},
ResponseVectorVote {
response_id: &'a str,
agent_instance_hierarchy: &'a str,
},
}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
RequestUserContentText
RequestUserContentImage
RequestUserContentAudio
RequestUserContentVideo
RequestUserContentFile
RequestAssistantRefusal
RequestAssistantReasoning
RequestAssistantToolCall
RequestAssistantContentText
RequestAssistantContentImage
RequestAssistantContentAudio
RequestAssistantContentVideo
RequestAssistantContentFile
RequestTool
RequestToolContentText
RequestToolContentImage
RequestToolContentAudio
RequestToolContentVideo
RequestToolContentFile
RequestVectorChoice
RequestVectorChoiceContentText
RequestVectorChoiceContentImage
RequestVectorChoiceContentAudio
RequestVectorChoiceContentVideo
RequestVectorChoiceContentFile
ResponseVectorVote
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