pub enum Fresh {
Nothing,
Value(Value),
Made(Value),
Store,
}Expand description
What a value writes under a key of a map made just now
(Model::fresh): what can be made with that map in one batch is, so an
item made whole costs the batch, not an operation and a lookup per field.
Variants§
Nothing
Nothing: the key stays absent, as for an absent Option.
Value(Value)
This value, made with the map. A text in it is made with the marks
Model::store would set on it (a String field’s author).
Made(Value)
This value, made with the map too, whose Model::store writes into
it once the map is made: a rich text’s schema, which its body is
written into, goes in with the map holding it rather than as an
insert of its own. storing_made is true while that store writes.
Store
Written by Model::store once the map is made.
Implementations§
Auto Trait Implementations§
impl Forget for Fresh
impl Freeze for Fresh
impl Move for Fresh
impl RefUnwindSafe for Fresh
impl Send for Fresh
impl Sync for Fresh
impl Unpin for Fresh
impl UnsafeUnpin for Fresh
impl UnwindSafe for Fresh
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
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