pub struct PackageContent {
pub knowledge: Option<KnowledgeLayer>,
pub graph: Option<GraphLayer>,
pub session: Option<SessionLayer>,
pub patterns: Option<PatternsLayer>,
pub gotchas: Option<GotchasLayer>,
pub context_graph: Option<ContextGraph>,
pub addon: Option<AddonContent>,
pub documents: Option<DocumentsContent>,
pub checkpoint: Option<CheckpointPackageContentV1>,
}Fields§
§knowledge: Option<KnowledgeLayer>§graph: Option<GraphLayer>§session: Option<SessionLayer>§patterns: Option<PatternsLayer>§gotchas: Option<GotchasLayer>§context_graph: Option<ContextGraph>§addon: Option<AddonContent>kind=addon payload (GH #724/#726): the embedded addon manifest.
Absent for every other kind — enforced by
super::verify::validate_kind_coherence.
documents: Option<DocumentsContent>kind=skills payload (GH #724/#727): named, verified content blobs.
Absent for every other kind — enforced by
super::verify::validate_kind_coherence.
checkpoint: Option<CheckpointPackageContentV1>Portable P6 checkpoint envelope. Presence is coherent IFF the manifest
declares the explicit checkpoint layer, making pre-extension readers
reject the package at their closed enum parse boundary.
Implementations§
Source§impl PackageContent
impl PackageContent
pub fn estimated_token_count(&self) -> usize
Trait Implementations§
Source§impl Clone for PackageContent
impl Clone for PackageContent
Source§impl Debug for PackageContent
impl Debug for PackageContent
Source§impl Default for PackageContent
impl Default for PackageContent
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 Forget for PackageContent
impl Freeze for PackageContent
impl Move 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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