pub struct ConversationScope {
pub conversation_id: String,
pub user_id: Option<String>,
pub agent_id: Option<String>,
pub agent_space_id: Option<String>,
pub runtime_type: Option<String>,
pub relations: ResourceRelations,
}Expand description
Identifies the conversation a record belongs to.
conversation_id is the only required field: it is the partition key. The
rest are optional provenance used for filtering and auditing.
Fields§
§conversation_id: String§user_id: Option<String>§agent_id: Option<String>§agent_space_id: Option<String>§runtime_type: Option<String>§relations: ResourceRelationsMany-to-many domain associations. Legacy singular provenance fields above remain readable but are not the canonical relation model.
Implementations§
Source§impl ConversationScope
impl ConversationScope
pub fn conversation(conversation_id: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for ConversationScope
impl Clone for ConversationScope
Source§fn clone(&self) -> ConversationScope
fn clone(&self) -> ConversationScope
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 ConversationScope
impl Debug for ConversationScope
Source§impl Default for ConversationScope
impl Default for ConversationScope
Source§fn default() -> ConversationScope
fn default() -> ConversationScope
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConversationScope
impl<'de> Deserialize<'de> for ConversationScope
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 ConversationScope
Source§impl PartialEq for ConversationScope
impl PartialEq for ConversationScope
Source§impl Serialize for ConversationScope
impl Serialize for ConversationScope
impl StructuralPartialEq for ConversationScope
Auto Trait Implementations§
impl Freeze for ConversationScope
impl RefUnwindSafe for ConversationScope
impl Send for ConversationScope
impl Sync for ConversationScope
impl Unpin for ConversationScope
impl UnsafeUnpin for ConversationScope
impl UnwindSafe for ConversationScope
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