pub struct Chatend {
pub metadata: SessionMetadata,
pub next_id: u64,
pub events: Vec<Event>,
pub boxes: BTreeMap<BoxId, BoxState>,
pub pending: BTreeMap<PendingId, PendingKind>,
pub tools: BTreeMap<String, ToolState>,
pub tool_layouts: BTreeMap<String, Vec<BoxId>>,
pub source_terminated: bool,
pub history_ingress_started: bool,
pub completed_session_object: Option<String>,
}Fields§
§metadata: SessionMetadata§next_id: u64§events: Vec<Event>§boxes: BTreeMap<BoxId, BoxState>§pending: BTreeMap<PendingId, PendingKind>§tools: BTreeMap<String, ToolState>§tool_layouts: BTreeMap<String, Vec<BoxId>>§source_terminated: bool§history_ingress_started: bool§completed_session_object: Option<String>Implementations§
Source§impl Chatend
impl Chatend
pub fn event(&self, id: EventId) -> Option<&Event>
pub fn box_state(&self, id: BoxId) -> Option<&BoxState>
pub fn active_boxes(&self) -> impl Iterator<Item = &BoxState>
pub fn live_context_limit(&self) -> u64
pub fn forced_ingress_context_limit(&self) -> u64
pub fn ingress_initial_context_limit(&self) -> u64
pub fn ingress_context_limit(&self) -> u64
pub fn active_context_limit(&self) -> u64
pub fn projection_with_new_boxes( &self, boxes: &[(String, BoxOwner, BoxContent)], ) -> Result<ContextProjection>
pub fn projection_with_new_boxes_and_updates( &self, boxes: &[(String, BoxOwner, BoxContent)], updates: &BTreeMap<BoxId, BoxContent>, ) -> Result<ContextProjection>
pub fn projection_with_box_representations( &self, desired: &BTreeMap<BoxId, BoxRepresentation>, ) -> Result<ContextProjection>
pub fn projection(&self) -> ContextProjection
pub fn render(&self) -> String
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Chatend
impl<'de> Deserialize<'de> for Chatend
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 Chatend
impl StructuralPartialEq for Chatend
Auto Trait Implementations§
impl Freeze for Chatend
impl RefUnwindSafe for Chatend
impl Send for Chatend
impl Sync for Chatend
impl Unpin for Chatend
impl UnsafeUnpin for Chatend
impl UnwindSafe for Chatend
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