pub struct ContextLayer {
pub kind: LayerKind,
pub text: String,
pub estimated_tokens: usize,
pub provenance: Vec<String>,
}Fields§
§kind: LayerKind§text: String§estimated_tokens: usize§provenance: Vec<String>Trait Implementations§
Source§impl Clone for ContextLayer
impl Clone for ContextLayer
Source§fn clone(&self) -> ContextLayer
fn clone(&self) -> ContextLayer
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 ContextLayer
impl Debug for ContextLayer
Source§impl<'de> Deserialize<'de> for ContextLayer
impl<'de> Deserialize<'de> for ContextLayer
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 ContextLayer
impl RefUnwindSafe for ContextLayer
impl Send for ContextLayer
impl Sync for ContextLayer
impl Unpin for ContextLayer
impl UnsafeUnpin for ContextLayer
impl UnwindSafe for ContextLayer
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