pub struct FlagOp {Show 15 fields
pub at: String,
pub anchor: Option<String>,
pub occurrence: Option<usize>,
pub content: Option<String>,
pub delete: bool,
pub resolve: bool,
pub accept: bool,
pub reject: bool,
pub strike: bool,
pub restore: bool,
pub visible: bool,
pub reply: Option<String>,
pub before: bool,
pub comment: bool,
pub styles: Vec<String>,
}Expand description
One operation as the flags describe it, grouped by its -p.
Fields§
§at: StringThe -p value: p12, header1, t0.row1.cell2, c5, or a long id.
anchor: Option<String>--anchor: text inside at.
occurrence: Option<usize>--occurrence: 1-based match of anchor in this group.
content: Option<String>--content: new text.
delete: bool--delete.
resolve: bool--resolve (edit only).
accept: bool--accept (edit only): accept the revision at names.
reject: bool--reject (edit only): reject the revision at names.
strike: bool--strike (edit only): strike another author’s insertion, as our
tracked deletion inside it.
restore: bool--restore (edit only): restore another author’s deletion, as our
tracked insertion of its words after it.
visible: bool--visible (with --reject): a strike or a restore, by the kind of
each revision at names.
reply: Option<String>--reply: a reply to the comment at names.
before: bool--before (add only).
comment: bool--comment (add only).
styles: Vec<String>--style values, in order.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FlagOp
impl<'de> Deserialize<'de> for FlagOp
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FlagOp, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FlagOp, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FlagOp
Source§impl Serialize for FlagOp
impl Serialize for FlagOp
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for FlagOp
Auto Trait Implementations§
impl Forget for FlagOp
impl Freeze for FlagOp
impl Move for FlagOp
impl RefUnwindSafe for FlagOp
impl Send for FlagOp
impl Sync for FlagOp
impl Unpin for FlagOp
impl UnsafeUnpin for FlagOp
impl UnwindSafe for FlagOp
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.