pub struct Expiry {
pub batch_delete: bool,
pub delay: u32,
pub delete_storage: bool,
pub sleep_time: u32,
pub workers: u32,
pub delete_workers: u32,
pub iteration_max_tasks: u32,
pub delete_batch_size: u32,
pub badlisted_tag_dtl: u32,
}Fields§
§batch_delete: boolPerform expiry in batches?
Delete queries are rounded by day therefore all delete operation happen at the same time at midnight
delay: u32Delay, in hours, that will be applied to the expiry query so we can keep data longer then previously set or we can offset deletion during non busy hours
delete_storage: boolShould we also cleanup the file storage?
sleep_time: u32Time, in seconds, to sleep in between each expiry run
workers: u32Number of concurrent workers
delete_workers: u32Worker processes for file storage deletes.
iteration_max_tasks: u32How many query chunks get run per iteration.
delete_batch_size: u32How large a batch get deleted per iteration.
badlisted_tag_dtl: u32The default period, in days, before tags expire from Badlist
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Expiry
impl<'de> Deserialize<'de> for Expiry
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 Expiry
impl RefUnwindSafe for Expiry
impl Send for Expiry
impl Sync for Expiry
impl Unpin for Expiry
impl UnwindSafe for Expiry
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more