pub struct SelectionGate {
pub schema: String,
pub gate: String,
pub per: Per,
pub metrics: BTreeMap<String, Direction>,
pub min_comparable_coverage: Decimal,
pub min_labeled_coverage: Decimal,
pub require: Vec<Clause>,
pub and_any: Option<Vec<Clause>>,
pub rank_by: Vec<String>,
}Fields§
§schema: String§gate: String§per: Per§metrics: BTreeMap<String, Direction>§min_comparable_coverage: Decimal§min_labeled_coverage: Decimal§require: Vec<Clause>§and_any: Option<Vec<Clause>>§rank_by: Vec<String>Implementations§
Trait Implementations§
Source§impl Clone for SelectionGate
impl Clone for SelectionGate
Source§impl Debug for SelectionGate
impl Debug for SelectionGate
Source§impl<'de> Deserialize<'de> for SelectionGate
impl<'de> Deserialize<'de> for SelectionGate
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 Document for SelectionGate
impl Document for SelectionGate
Source§const SCHEMA: &'static str = SELECTION_GATE
const SCHEMA: &'static str = SELECTION_GATE
The schema string this document carries (spec 002, 3.2.1).
Source§const LIMITS: ParseLimits = DESCRIPTOR_V1
const LIMITS: ParseLimits = DESCRIPTOR_V1
The limit set its bytes are scanned against (spec 002, 3.2.5).
Source§fn parse(bytes: &[u8]) -> Result<Self, DocumentError>
fn parse(bytes: &[u8]) -> Result<Self, DocumentError>
Scan, deserialize and check the schema string.
Source§fn record_canonical(&self) -> Result<Vec<u8>, CanonicalError>where
Self: PartialEq,
fn record_canonical(&self) -> Result<Vec<u8>, CanonicalError>where
Self: PartialEq,
The record canonical bytes (spec 004, 5.6): the canonical bytes, with
finite fractional numbers written in shortest round-trip form.
Source§fn record_digest(&self) -> Result<ContentDigest, CanonicalError>where
Self: PartialEq,
fn record_digest(&self) -> Result<ContentDigest, CanonicalError>where
Self: PartialEq,
sha256(SCHEMA || 0x00 || record canonical bytes) (spec 004, 3.1.6).
Equal to the identity of an identified document.impl Eq for SelectionGate
Source§impl Identified for SelectionGate
impl Identified for SelectionGate
type Id = ContentDigest
Source§impl PartialEq for SelectionGate
impl PartialEq for SelectionGate
Source§impl Serialize for SelectionGate
impl Serialize for SelectionGate
impl StructuralPartialEq for SelectionGate
Auto Trait Implementations§
impl Freeze for SelectionGate
impl RefUnwindSafe for SelectionGate
impl Send for SelectionGate
impl Sync for SelectionGate
impl Unpin for SelectionGate
impl UnsafeUnpin for SelectionGate
impl UnwindSafe for SelectionGate
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