pub struct ContextReductionReceipt {
pub item_id: String,
pub method: String,
pub version: String,
pub before_bytes: u64,
pub after_bytes: u64,
pub lossy: bool,
}Expand description
One deterministic reduction receipt proposed for a request.
Fields§
§item_id: StringStable context item id.
method: StringReducer or selection method name.
version: StringReducer method version.
before_bytes: u64Bytes before the proposed decision.
after_bytes: u64Bytes after the proposed decision.
lossy: boolWhether the proposed decision may remove information.
Trait Implementations§
Source§impl Clone for ContextReductionReceipt
impl Clone for ContextReductionReceipt
Source§fn clone(&self) -> ContextReductionReceipt
fn clone(&self) -> ContextReductionReceipt
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 ContextReductionReceipt
impl Debug for ContextReductionReceipt
Source§impl<'de> Deserialize<'de> for ContextReductionReceipt
impl<'de> Deserialize<'de> for ContextReductionReceipt
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
impl Eq for ContextReductionReceipt
Source§impl PartialEq for ContextReductionReceipt
impl PartialEq for ContextReductionReceipt
Source§impl Serialize for ContextReductionReceipt
impl Serialize for ContextReductionReceipt
impl StructuralPartialEq for ContextReductionReceipt
Auto Trait Implementations§
impl Freeze for ContextReductionReceipt
impl RefUnwindSafe for ContextReductionReceipt
impl Send for ContextReductionReceipt
impl Sync for ContextReductionReceipt
impl Unpin for ContextReductionReceipt
impl UnsafeUnpin for ContextReductionReceipt
impl UnwindSafe for ContextReductionReceipt
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