#[non_exhaustive]pub struct CompactionSummaryChunk {
pub compaction_id: CompactionId,
pub content: ContentBlock,
pub meta: Option<Meta>,
}Available on crate feature
unstable_protocol_v2 only.Expand description
UNSTABLE
This capability is not part of the spec yet, and may be removed or changed at any point.
A content block appended to the retained summary of an in-progress
compaction. Agents send chunks only after an in_progress update and before
the terminal update for the same ID.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.compaction_id: CompactionIdID of the compaction whose summary receives this content.
content: ContentBlockOne content block to append.
meta: Option<Meta>Metadata scoped to this chunk. Omission and null both mean absent.
Implementations§
Source§impl CompactionSummaryChunk
impl CompactionSummaryChunk
Sourcepub fn new(
compaction_id: impl Into<CompactionId>,
content: ContentBlock,
) -> Self
Available on crate feature unstable_session_compaction only.
pub fn new( compaction_id: impl Into<CompactionId>, content: ContentBlock, ) -> Self
unstable_session_compaction only.Builds a summary chunk without metadata.
Sourcepub fn meta(self, meta: impl IntoOption<Meta>) -> Self
Available on crate feature unstable_session_compaction only.
pub fn meta(self, meta: impl IntoOption<Meta>) -> Self
unstable_session_compaction only.Sets or clears chunk-scoped metadata.
Trait Implementations§
Source§impl Clone for CompactionSummaryChunk
impl Clone for CompactionSummaryChunk
Source§fn clone(&self) -> CompactionSummaryChunk
fn clone(&self) -> CompactionSummaryChunk
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 CompactionSummaryChunk
impl Debug for CompactionSummaryChunk
Source§impl<'de> Deserialize<'de> for CompactionSummaryChunk
impl<'de> Deserialize<'de> for CompactionSummaryChunk
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
Source§impl JsonSchema for CompactionSummaryChunk
impl JsonSchema for CompactionSummaryChunk
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for CompactionSummaryChunk
impl PartialEq for CompactionSummaryChunk
Source§impl Serialize for CompactionSummaryChunk
impl Serialize for CompactionSummaryChunk
impl StructuralPartialEq for CompactionSummaryChunk
Auto Trait Implementations§
impl Freeze for CompactionSummaryChunk
impl RefUnwindSafe for CompactionSummaryChunk
impl Send for CompactionSummaryChunk
impl Sync for CompactionSummaryChunk
impl Unpin for CompactionSummaryChunk
impl UnsafeUnpin for CompactionSummaryChunk
impl UnwindSafe for CompactionSummaryChunk
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.