pub struct NoteFence {
pub key: String,
pub kind: String,
pub expected_version: Option<i64>,
pub live_until: Option<String>,
pub id: Option<Uuid>,
}Fields§
§key: String§kind: String§expected_version: Option<i64>None asserts absence; the JSON field is still required.
live_until: Option<String>Dotted document path whose RFC 3339 value must exceed the writer clock,
on the same semantics a batch observation’s live_until carries. A
version comparison alone cannot express live ownership: a lease that
merely ran out changes no document and moves no version, so the version
still matches and the write commits.
id: Option<Uuid>The note that must hold this key, on the same semantics a batch
observation’s id carries. A recreated note starts at version 1, so a
version comparison alone cannot tell the note the caller read from a
different note sitting at the same number.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NoteFence
impl<'de> Deserialize<'de> for NoteFence
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<NoteFence> for NoteFences
impl From<NoteFence> for NoteFences
Auto Trait Implementations§
impl Forget for NoteFence
impl Freeze for NoteFence
impl Move for NoteFence
impl RefUnwindSafe for NoteFence
impl Send for NoteFencewhere
RawVecInner: Send,
impl Sync for NoteFencewhere
RawVecInner: Sync,
impl Unpin for NoteFence
impl UnsafeUnpin for NoteFence
impl UnwindSafe for NoteFencewhere
RawVecInner: UnwindSafe,
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