pub struct ContextPage {
pub id: String,
pub content: String,
pub token_count: u32,
}Expand description
A single page of context memory.
Fields§
§id: String§content: String§token_count: u32Trait Implementations§
Source§impl Clone for ContextPage
impl Clone for ContextPage
Source§fn clone(&self) -> ContextPage
fn clone(&self) -> ContextPage
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 ContextPage
impl Debug for ContextPage
Source§impl<'de> Deserialize<'de> for ContextPage
impl<'de> Deserialize<'de> for ContextPage
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
Auto Trait Implementations§
impl Freeze for ContextPage
impl RefUnwindSafe for ContextPage
impl Send for ContextPage
impl Sync for ContextPage
impl Unpin for ContextPage
impl UnsafeUnpin for ContextPage
impl UnwindSafe for ContextPage
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