pub struct PageInEntry {
pub content: String,
pub tokens: Option<u32>,
pub source: Option<String>,
pub key: Option<String>,
pub pinned: bool,
}Expand description
One knowledge entry supplied by the SDK after a long-term fetch (page-in).
Fields§
§content: String§tokens: Option<u32>§source: Option<String>§key: Option<String>K1: entry identity — a keyed page-in upserts instead of appending a duplicate.
pinned: boolK1: pinned entries are exempt from the K2 budget sweep.
Trait Implementations§
Source§impl Clone for PageInEntry
impl Clone for PageInEntry
Source§fn clone(&self) -> PageInEntry
fn clone(&self) -> PageInEntry
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 PageInEntry
impl Debug for PageInEntry
Source§impl<'de> Deserialize<'de> for PageInEntry
impl<'de> Deserialize<'de> for PageInEntry
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 PageInEntry
impl RefUnwindSafe for PageInEntry
impl Send for PageInEntry
impl Sync for PageInEntry
impl Unpin for PageInEntry
impl UnsafeUnpin for PageInEntry
impl UnwindSafe for PageInEntry
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