Skip to main content

ComparisonRow

Struct ComparisonRow 

Source
pub struct ComparisonRow<'a> {
Show 28 fields pub pair: u64, pub arm: Arm, pub fallback: bool, pub day: u32, pub domain_key: u64, pub need: DeclaredNeed, pub ext: ExtClass, pub tld: u8, pub memory: MemoryState, pub routed: &'a RouteDecision, pub edit: Option<EditDescriptor>, pub pinned: u32, pub pinned_hi: u64, pub success: bool, pub status: StatusClass, pub millis: u32, pub bytes: u32, pub credits: f64, pub attempts: u8, pub multiplier: f32, pub fields_requested: u8, pub fields_present: u8, pub content_ok: Option<bool>, pub fields_ok: Option<bool>, pub shingle_jaccard: Option<f32>, pub byte_ratio: Option<f32>, pub base: &'a FeatureVector, pub edit_feats: &'a EditFeatures,
}
Expand description

One arm of one paired trial.

Fields§

§pair: u64

Which pair this arm belongs to.

§arm: Arm

Which arm.

§fallback: bool

Whether a tripped monitor shadowed a pick that would otherwise have been applied. See crate::monitor.

§day: u32

The day the trial ran, as a count the caller chooses.

§domain_key: u64

The caller’s opaque key for the site, for splitting train and test by site. Never a hash this crate computes from a name.

§need: DeclaredNeed

What the caller wanted back.

§ext: ExtClass

What kind of file the address names.

§tld: u8

The label group slot of the host, as the router reads it.

§memory: MemoryState

How much the caller remembered.

§routed: &'a RouteDecision

What the router decided.

§edit: Option<EditDescriptor>

The edit this arm carried, None for the baseline.

§pinned: u32

See pinned_mask, the first 32 keys.

§pinned_hi: u64

See pinned_mask, keys 32 and up.

§success: bool

Whether the arm got what the caller asked for.

§status: StatusClass

How it ended.

§millis: u32

How long it took.

§bytes: u32

How many bytes came back.

§credits: f64

What it cost.

§attempts: u8

How many attempts it took.

§multiplier: f32

The arm’s multiplier.

§fields_requested: u8

How many fields the caller asked for.

§fields_present: u8

How many came back non-empty.

§content_ok: Option<bool>

Whether the content matched the baseline closely enough.

§fields_ok: Option<bool>§shingle_jaccard: Option<f32>§byte_ratio: Option<f32>§base: &'a FeatureVector

The router’s features for the request.

§edit_feats: &'a EditFeatures

The edit’s features.

Trait Implementations§

Source§

impl<'a> Clone for ComparisonRow<'a>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Copy for ComparisonRow<'a>

Source§

impl<'a> Debug for ComparisonRow<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> PartialEq for ComparisonRow<'a>

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl<'a> StructuralPartialEq for ComparisonRow<'a>

Auto Trait Implementations§

§

impl<'a> Forget for ComparisonRow<'a>

§

impl<'a> Freeze for ComparisonRow<'a>

§

impl<'a> Move for ComparisonRow<'a>

§

impl<'a> RefUnwindSafe for ComparisonRow<'a>

§

impl<'a> Send for ComparisonRow<'a>

§

impl<'a> Sync for ComparisonRow<'a>

§

impl<'a> Unpin for ComparisonRow<'a>

§

impl<'a> UnsafeUnpin for ComparisonRow<'a>

§

impl<'a> UnwindSafe for ComparisonRow<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.