#[non_exhaustive]pub struct TaskClaim {
pub token: String,
pub expires_at: i64,
pub retaken: bool,
}Expand description
13a (13.1): the claim an owner holds after a Mnemo::task_update
(RB-012.1), so it always has the current token.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.token: StringThe task:<slug> claim’s token.
expires_at: i64When it lapses unless an update renews it.
retaken: boolThe claim had lapsed and nobody took the task, so the owner took the claim again (with a new token).
Trait Implementations§
impl Eq for TaskClaim
impl StructuralPartialEq for TaskClaim
Auto Trait Implementations§
impl Forget for TaskClaim
impl Freeze for TaskClaim
impl Move for TaskClaim
impl RefUnwindSafe for TaskClaim
impl Send for TaskClaim
impl Sync for TaskClaim
impl Unpin for TaskClaim
impl UnsafeUnpin for TaskClaim
impl UnwindSafe for TaskClaim
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