pub struct SortWeight {
pub sort: FeedSort,
pub weight: u32,
pub out_of: u32,
}Expand description
One entry of the table a dashboard draws its sort from: sort with
probability weight / out_of (0.95)
Fields§
§sort: FeedSort§weight: u32§out_of: u32Implementations§
Source§impl SortWeight
impl SortWeight
Sourcepub fn table() -> Vec<Self>
pub fn table() -> Vec<Self>
DASHBOARD_SORT_WEIGHTS as
the wire carries it
Trait Implementations§
Source§impl Clone for SortWeight
impl Clone for SortWeight
impl Copy for SortWeight
Source§impl Debug for SortWeight
impl Debug for SortWeight
Source§impl<'de> Deserialize<'de> for SortWeight
impl<'de> Deserialize<'de> for SortWeight
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 SortWeight
Source§impl PartialEq for SortWeight
impl PartialEq for SortWeight
Source§impl Serialize for SortWeight
impl Serialize for SortWeight
impl StructuralPartialEq for SortWeight
Auto Trait Implementations§
impl Freeze for SortWeight
impl RefUnwindSafe for SortWeight
impl Send for SortWeight
impl Sync for SortWeight
impl Unpin for SortWeight
impl UnsafeUnpin for SortWeight
impl UnwindSafe for SortWeight
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.