pub struct FidelityContract {
pub fidelity_level: &'static str,
pub invariant_version: u8,
pub required_fields: &'static [&'static str],
}Expand description
The set of fields that must be present in a compacted page.
Returned by PageInvariant::minimum_fidelity and checked by
PageInvariant::verify after summarization.
Fields§
§fidelity_level: &'static strHuman-readable label for this contract version (e.g. "structured_summary_v1").
invariant_version: u8Schema version integer included in audit records.
required_fields: &'static [&'static str]Fields that must appear in the compacted body text.
Trait Implementations§
Source§impl Clone for FidelityContract
impl Clone for FidelityContract
Source§fn clone(&self) -> FidelityContract
fn clone(&self) -> FidelityContract
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FidelityContract
impl RefUnwindSafe for FidelityContract
impl Send for FidelityContract
impl Sync for FidelityContract
impl Unpin for FidelityContract
impl UnsafeUnpin for FidelityContract
impl UnwindSafe for FidelityContract
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,
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request