pub struct TaskProtection {
pub enabled: bool,
pub expiration: Option<DateTime<Utc>>,
}Fields§
§enabled: bool§expiration: Option<DateTime<Utc>>Trait Implementations§
Source§impl Clone for TaskProtection
impl Clone for TaskProtection
Source§fn clone(&self) -> TaskProtection
fn clone(&self) -> TaskProtection
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 TaskProtection
impl Debug for TaskProtection
Source§impl<'de> Deserialize<'de> for TaskProtection
impl<'de> Deserialize<'de> for TaskProtection
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 TaskProtection
impl RefUnwindSafe for TaskProtection
impl Send for TaskProtection
impl Sync for TaskProtection
impl Unpin for TaskProtection
impl UnsafeUnpin for TaskProtection
impl UnwindSafe for TaskProtection
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