pub struct RankingDecl {
pub name: String,
pub param: String,
pub relevant_at_least: u8,
pub gain: Gain,
pub metrics: Vec<RankingMetric>,
pub backfill_positions: u64,
}Expand description
A ranking declaration (3.4.2).
Fields§
§name: String§param: StringThe proposal parameter holding the ranked list.
relevant_at_least: u81 to 10: the lowest grade that counts as relevant.
gain: Gain§metrics: Vec<RankingMetric>§backfill_positions: u640 to 100: backfill@p<p> for p from 1 to this.
Trait Implementations§
Source§impl Clone for RankingDecl
impl Clone for RankingDecl
Source§impl Debug for RankingDecl
impl Debug for RankingDecl
Source§impl<'de> Deserialize<'de> for RankingDecl
impl<'de> Deserialize<'de> for RankingDecl
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 RankingDecl
Source§impl PartialEq for RankingDecl
impl PartialEq for RankingDecl
Source§impl Serialize for RankingDecl
impl Serialize for RankingDecl
impl StructuralPartialEq for RankingDecl
Auto Trait Implementations§
impl Freeze for RankingDecl
impl RefUnwindSafe for RankingDecl
impl Send for RankingDecl
impl Sync for RankingDecl
impl Unpin for RankingDecl
impl UnsafeUnpin for RankingDecl
impl UnwindSafe for RankingDecl
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