pub struct TimeRollingConfig {
pub period: TimePeriod,
pub keep_days: u32,
}Expand description
时间滚动配置
Fields§
§period: TimePeriod滚动周期
keep_days: u32保留天数
Trait Implementations§
Source§impl Clone for TimeRollingConfig
impl Clone for TimeRollingConfig
Source§fn clone(&self) -> TimeRollingConfig
fn clone(&self) -> TimeRollingConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 TimeRollingConfig
impl Debug for TimeRollingConfig
Source§impl<'de> Deserialize<'de> for TimeRollingConfig
impl<'de> Deserialize<'de> for TimeRollingConfig
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 TimeRollingConfig
impl RefUnwindSafe for TimeRollingConfig
impl Send for TimeRollingConfig
impl Sync for TimeRollingConfig
impl Unpin for TimeRollingConfig
impl UnwindSafe for TimeRollingConfig
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