pub struct ChannelRecencyRule {
pub channel: String,
pub mode: RecencyMode,
}Expand description
按通道区分的近因性规则
Fields§
§channel: String通道名称
mode: RecencyMode近因性衰减模式
Trait Implementations§
Source§impl Clone for ChannelRecencyRule
impl Clone for ChannelRecencyRule
Source§fn clone(&self) -> ChannelRecencyRule
fn clone(&self) -> ChannelRecencyRule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChannelRecencyRule
impl Debug for ChannelRecencyRule
Source§impl<'de> Deserialize<'de> for ChannelRecencyRule
impl<'de> Deserialize<'de> for ChannelRecencyRule
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
Auto Trait Implementations§
impl Freeze for ChannelRecencyRule
impl RefUnwindSafe for ChannelRecencyRule
impl Send for ChannelRecencyRule
impl Sync for ChannelRecencyRule
impl Unpin for ChannelRecencyRule
impl UnsafeUnpin for ChannelRecencyRule
impl UnwindSafe for ChannelRecencyRule
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