pub struct PatchField {
pub name: &'static str,
pub clearable: bool,
pub summary: &'static str,
}Expand description
Every field a batch can change, and whether it can be emptied.
clearable is part of the projection rather than a detail of the apply: a remote
surface that cannot represent “unset this field” cannot offer --clear, and a
capability list that omitted the distinction would advertise a request it has to
refuse.
Fields§
§name: &'static strThe name in PatchFlags, in the CLI’s field order.
clearable: boolWhether --clear <name> is accepted.
summary: &'static strOne line for a schema description.
Auto Trait Implementations§
impl Freeze for PatchField
impl RefUnwindSafe for PatchField
impl Send for PatchField
impl Sync for PatchField
impl Unpin for PatchField
impl UnsafeUnpin for PatchField
impl UnwindSafe for PatchField
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> 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