pub struct PrePublishSummary {Show 13 fields
pub total_conversations: usize,
pub total_messages: usize,
pub total_characters: usize,
pub estimated_size_bytes: usize,
pub earliest_timestamp: Option<DateTime<Utc>>,
pub latest_timestamp: Option<DateTime<Utc>>,
pub date_histogram: Vec<DateHistogramEntry>,
pub workspaces: Vec<WorkspaceSummaryItem>,
pub agents: Vec<AgentSummaryItem>,
pub secret_scan: ScanReportSummary,
pub encryption_config: Option<EncryptionSummary>,
pub key_slots: Vec<KeySlotSummary>,
pub generated_at: DateTime<Utc>,
}Expand description
Pre-publish summary containing all information about content to be exported.
Fields§
§total_conversations: usizeTotal number of conversations to be exported.
total_messages: usizeTotal number of messages across all conversations.
total_characters: usizeTotal character count of all message content.
estimated_size_bytes: usizeEstimated size in bytes after compression and encryption.
earliest_timestamp: Option<DateTime<Utc>>Earliest timestamp in the export set.
latest_timestamp: Option<DateTime<Utc>>Latest timestamp in the export set.
date_histogram: Vec<DateHistogramEntry>Histogram of messages per day.
workspaces: Vec<WorkspaceSummaryItem>Per-workspace breakdown.
agents: Vec<AgentSummaryItem>Per-agent breakdown.
secret_scan: ScanReportSummarySummary of secret scan results.
encryption_config: Option<EncryptionSummary>Encryption configuration summary.
key_slots: Vec<KeySlotSummary>Key slots configured for the export.
generated_at: DateTime<Utc>When this summary was generated.
Implementations§
Source§impl PrePublishSummary
impl PrePublishSummary
Sourcepub fn render_overview(&self) -> String
pub fn render_overview(&self) -> String
Render a text overview of the summary.
Sourcepub fn included_workspace_count(&self) -> usize
pub fn included_workspace_count(&self) -> usize
Get count of included workspaces.
Sourcepub fn included_agent_count(&self) -> usize
pub fn included_agent_count(&self) -> usize
Get count of included agents.
Sourcepub fn set_secret_scan(&mut self, report: &SecretScanReport)
pub fn set_secret_scan(&mut self, report: &SecretScanReport)
Update with secret scan results.
Sourcepub fn set_encryption_config(&mut self, key_slots: &[KeySlot])
pub fn set_encryption_config(&mut self, key_slots: &[KeySlot])
Update with encryption config.
Trait Implementations§
Source§impl Clone for PrePublishSummary
impl Clone for PrePublishSummary
Source§fn clone(&self) -> PrePublishSummary
fn clone(&self) -> PrePublishSummary
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 PrePublishSummary
impl Debug for PrePublishSummary
Source§impl<'de> Deserialize<'de> for PrePublishSummary
impl<'de> Deserialize<'de> for PrePublishSummary
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 PrePublishSummary
impl RefUnwindSafe for PrePublishSummary
impl Send for PrePublishSummary
impl Sync for PrePublishSummary
impl Unpin for PrePublishSummary
impl UnsafeUnpin for PrePublishSummary
impl UnwindSafe for PrePublishSummary
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).
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