pub enum IssueOperationData {
AddComment {
message: String,
files: Vec<File>,
},
Create {
title: String,
message: String,
files: Vec<File>,
},
EditComment {
target: EntityId<Issue>,
message: String,
files: Vec<File>,
},
LabelChange {
added: Vec<Label>,
removed: Vec<Label>,
},
SetMetadata {
target: Id,
new_metadata: Vec<(String, String)>,
},
SetStatus {
status: Status,
},
SetTitle {
title: String,
was: String,
},
Noop {},
}Expand description
The specific operations that affect only Issues.
Variants§
AddComment
Adding a comment.
Fields
Create
Creating an Issue.
Fields
EditComment
Editing a comment.
Fields
LabelChange
Changing labels.
SetMetadata
Setting metadata.
Fields
SetStatus
Setting the status.
SetTitle
Setting the title.
Noop
Trait Implementations§
Source§impl Clone for IssueOperationData
impl Clone for IssueOperationData
Source§fn clone(&self) -> IssueOperationData
fn clone(&self) -> IssueOperationData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IssueOperationData
impl Debug for IssueOperationData
Source§impl<'de> Deserialize<'de> for IssueOperationData
impl<'de> Deserialize<'de> for IssueOperationData
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
Source§impl OperationData for IssueOperationData
impl OperationData for IssueOperationData
Source§type DecodeError = Error
type DecodeError = Error
The returned error, when the operation data cannot be parsed from the
stored JSON value.
Source§fn from_value(
raw: Value,
predicted_type: u64,
) -> Result<Self, Self::DecodeError>where
Self: Sized,
fn from_value(
raw: Value,
predicted_type: u64,
) -> Result<Self, Self::DecodeError>where
Self: Sized,
Parses the stored JSON object as operation data. Read more
Source§fn to_json_type(&self) -> u64
fn to_json_type(&self) -> u64
Get an unique integer for each valid operation. Read more
Source§impl PartialEq for IssueOperationData
impl PartialEq for IssueOperationData
Source§impl Serialize for IssueOperationData
impl Serialize for IssueOperationData
impl Eq for IssueOperationData
impl StructuralPartialEq for IssueOperationData
Auto Trait Implementations§
impl Freeze for IssueOperationData
impl RefUnwindSafe for IssueOperationData
impl Send for IssueOperationData
impl Sync for IssueOperationData
impl Unpin for IssueOperationData
impl UnwindSafe for IssueOperationData
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,
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.