pub enum Operation {
Show 21 variants
Show {
patch_id: Rev,
diff: bool,
verbose: bool,
},
Diff {
patch_id: Rev,
revision_id: Option<Rev>,
},
Update {
patch_id: Rev,
base_id: Option<Rev>,
message: Message,
},
Archive {
patch_id: Rev,
undo: bool,
},
Ready {
patch_id: Rev,
undo: bool,
},
Delete {
patch_id: Rev,
},
Checkout {
patch_id: Rev,
revision_id: Option<Rev>,
opts: Options,
},
Comment {
revision_id: Rev,
message: Message,
reply_to: Option<Rev>,
},
CommentEdit {
revision_id: Rev,
comment_id: Rev,
message: Message,
},
CommentRedact {
revision_id: Rev,
comment_id: Rev,
},
CommentReact {
revision_id: Rev,
comment_id: Rev,
reaction: Reaction,
undo: bool,
},
React {
revision_id: Rev,
reaction: Reaction,
undo: bool,
},
Review {
patch_id: Rev,
revision_id: Option<Rev>,
opts: Options,
},
Resolve {
patch_id: Rev,
review_id: Rev,
comment_id: Rev,
undo: bool,
},
Assign {
patch_id: Rev,
opts: AssignOptions,
},
Label {
patch_id: Rev,
opts: LabelOptions,
},
List {
filter: Option<Status>,
},
Edit {
patch_id: Rev,
revision_id: Option<Rev>,
message: Message,
},
Redact {
revision_id: Rev,
},
Set {
patch_id: Rev,
remote: Option<RefString>,
},
Cache {
patch_id: Option<Rev>,
storage: bool,
},
}Variants§
Show
Diff
Update
Archive
Ready
Delete
Checkout
Comment
CommentEdit
CommentRedact
CommentReact
React
Review
Resolve
Assign
Label
List
Edit
Redact
Set
Cache
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnwindSafe for Operation
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