pub struct FieldEdit {
pub ty: String,
pub field: String,
pub path: Vec<PathStep>,
pub op: EditOp,
pub old: Option<Scalar>,
pub new: Option<Scalar>,
pub args: BTreeMap<String, Scalar>,
}Fields§
§ty: StringThe model type that owns the field, kebab-case (snippet).
field: StringThe field’s storage key (favorite).
path: Vec<PathStep>Where the field is, from the resource’s root.
op: EditOp§old: Option<Scalar>The value before, for a scalar field.
new: Option<Scalar>The value after, for a scalar field.
args: BTreeMap<String, Scalar>Plain facts of an edit the field’s own type describes (a rich-text edit’s mark, the words it covered), by name.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FieldEdit
impl<'de> Deserialize<'de> for FieldEdit
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
impl Eq for FieldEdit
impl StructuralPartialEq for FieldEdit
Auto Trait Implementations§
impl Forget for FieldEdit
impl Freeze for FieldEdit
impl Move for FieldEdit
impl RefUnwindSafe for FieldEdit
impl Send for FieldEdit
impl Sync for FieldEdit
impl Unpin for FieldEdit
impl UnsafeUnpin for FieldEdit
impl UnwindSafe for FieldEdit
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> 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