pub struct SelectionAudit {
pub pack_mode: PackMode,
pub redaction_policy: RedactionPolicy,
pub included: Vec<IncludedAuditEntry>,
pub exclusions: Vec<ExcludedAuditEntry>,
pub estimated_tokens: usize,
}Expand description
Replayable audit data for pack construction.
Fields§
§pack_mode: PackModePack mode used during construction.
redaction_policy: RedactionPolicyRedaction policy used during construction.
included: Vec<IncludedAuditEntry>Audit entries for included refs.
exclusions: Vec<ExcludedAuditEntry>Audit entries for excluded refs.
estimated_tokens: usizeEstimated token count from the local deterministic estimator.
Implementations§
Source§impl SelectionAudit
impl SelectionAudit
Sourcepub fn new(
pack_mode: PackMode,
redaction_policy: RedactionPolicy,
estimated_tokens: usize,
) -> Self
pub fn new( pack_mode: PackMode, redaction_policy: RedactionPolicy, estimated_tokens: usize, ) -> Self
Construct an empty audit for a pack build.
Trait Implementations§
Source§impl Clone for SelectionAudit
impl Clone for SelectionAudit
Source§fn clone(&self) -> SelectionAudit
fn clone(&self) -> SelectionAudit
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 SelectionAudit
impl Debug for SelectionAudit
Source§impl<'de> Deserialize<'de> for SelectionAudit
impl<'de> Deserialize<'de> for SelectionAudit
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 PartialEq for SelectionAudit
impl PartialEq for SelectionAudit
Source§fn eq(&self, other: &SelectionAudit) -> bool
fn eq(&self, other: &SelectionAudit) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SelectionAudit
impl Serialize for SelectionAudit
impl Eq for SelectionAudit
impl StructuralPartialEq for SelectionAudit
Auto Trait Implementations§
impl Freeze for SelectionAudit
impl RefUnwindSafe for SelectionAudit
impl Send for SelectionAudit
impl Sync for SelectionAudit
impl Unpin for SelectionAudit
impl UnsafeUnpin for SelectionAudit
impl UnwindSafe for SelectionAudit
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