pub struct XTrimOptions { /* private fields */ }
Implementations§
Source§impl XTrimOptions
impl XTrimOptions
pub fn max_len(operator: XTrimOperator, threshold: i64) -> Self
pub fn min_id<I: Into<CommandArg>>( operator: XTrimOperator, threshold_id: I, ) -> Self
pub fn limit(self, count: usize) -> Self
Trait Implementations§
Source§impl Default for XTrimOptions
impl Default for XTrimOptions
Source§fn default() -> XTrimOptions
fn default() -> XTrimOptions
Returns the “default value” for a type. Read more
Source§impl IntoArgs for XTrimOptions
impl IntoArgs for XTrimOptions
fn into_args(self, args: CommandArgs) -> CommandArgs
fn num_args(&self) -> usize
Auto Trait Implementations§
impl Freeze for XTrimOptions
impl RefUnwindSafe for XTrimOptions
impl Send for XTrimOptions
impl Sync for XTrimOptions
impl Unpin for XTrimOptions
impl UnwindSafe for XTrimOptions
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