pub struct PackageContent {
pub knowledge: Option<KnowledgeLayer>,
pub graph: Option<GraphLayer>,
pub session: Option<SessionLayer>,
pub patterns: Option<PatternsLayer>,
pub gotchas: Option<GotchasLayer>,
}Fields§
§knowledge: Option<KnowledgeLayer>§graph: Option<GraphLayer>§session: Option<SessionLayer>§patterns: Option<PatternsLayer>§gotchas: Option<GotchasLayer>Implementations§
Source§impl PackageContent
impl PackageContent
pub fn active_layer_count(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn estimated_token_count(&self) -> usize
Trait Implementations§
Source§impl Clone for PackageContent
impl Clone for PackageContent
Source§fn clone(&self) -> PackageContent
fn clone(&self) -> PackageContent
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 PackageContent
impl Debug for PackageContent
Source§impl Default for PackageContent
impl Default for PackageContent
Source§fn default() -> PackageContent
fn default() -> PackageContent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PackageContent
impl<'de> Deserialize<'de> for PackageContent
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 PackageContent
impl RefUnwindSafe for PackageContent
impl Send for PackageContent
impl Sync for PackageContent
impl Unpin for PackageContent
impl UnsafeUnpin for PackageContent
impl UnwindSafe for PackageContent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more