pub struct PartialClaim {
pub project_id: Option<String>,
pub task_id: Option<String>,
pub dev: Option<String>,
pub machine: Option<String>,
pub worktree: Option<String>,
pub created: Option<String>,
pub ttl_secs: Option<u64>,
pub id: Option<ClaimId>,
}Expand description
Advisory claim. id = task_id, so a SET overwrites any prior claim and “newest wins” falls out of LWW replay order. Ignored after ttl expires.
Fields§
§project_id: Option<String>§task_id: Option<String>§dev: Option<String>§machine: Option<String>§worktree: Option<String>§created: Option<String>RFC3339
ttl_secs: Option<u64>§id: Option<ClaimId>Implementations§
Trait Implementations§
Source§impl Clone for PartialClaim
impl Clone for PartialClaim
Source§fn clone(&self) -> PartialClaim
fn clone(&self) -> PartialClaim
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PartialClaim
impl Debug for PartialClaim
Source§impl Default for PartialClaim
impl Default for PartialClaim
Source§fn default() -> PartialClaim
fn default() -> PartialClaim
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PartialClaim
impl<'de> Deserialize<'de> for PartialClaim
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
Source§impl Partial for PartialClaim
impl Partial for PartialClaim
Source§type Item = PartialClaim
type Item = PartialClaim
The type of the partial structure, that may have
Some values.Source§fn apply_some(&mut self, partial: Self::Item) -> bool
fn apply_some(&mut self, partial: Self::Item) -> bool
Applies
Some values from Partial::Item to self, returning true when
updates were made, and false when nothing was applied. Read moreAuto Trait Implementations§
impl Freeze for PartialClaim
impl RefUnwindSafe for PartialClaim
impl Send for PartialClaim
impl Sync for PartialClaim
impl Unpin for PartialClaim
impl UnsafeUnpin for PartialClaim
impl UnwindSafe for PartialClaim
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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