pub struct OptimisticToken {
pub resource_id: String,
pub base_version: u64,
pub base_hash: String,
pub agent_id: String,
pub created_at: Instant,
}Expand description
Token for optimistic operations
Fields§
§resource_id: StringResource identifier
base_version: u64Version at the start of the operation
base_hash: StringContent hash at the start
agent_id: StringAgent performing the operation
created_at: InstantWhen the token was created
Implementations§
Trait Implementations§
Source§impl Clone for OptimisticToken
impl Clone for OptimisticToken
Source§fn clone(&self) -> OptimisticToken
fn clone(&self) -> OptimisticToken
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 moreAuto Trait Implementations§
impl Freeze for OptimisticToken
impl RefUnwindSafe for OptimisticToken
impl Send for OptimisticToken
impl Sync for OptimisticToken
impl Unpin for OptimisticToken
impl UnsafeUnpin for OptimisticToken
impl UnwindSafe for OptimisticToken
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