Struct gitlab::types::ResourceLabelEvent
source · pub struct ResourceLabelEvent {
pub id: LabelEventId,
pub user: UserBasic,
pub created_at: DateTime<Utc>,
pub label: Option<EventLabel>,
pub action: String,
/* private fields */
}
👎Deprecated since 0.1609.0: define deserialization types in client code
Expand description
A resource label event
Note that resource events were added in Gitlab 11.2. Any labels added or removed before then will not be returned by the API.
Fields§
§id: LabelEventId
👎Deprecated since 0.1609.0: define deserialization types in client code
The ID for the label event
user: UserBasic
👎Deprecated since 0.1609.0: define deserialization types in client code
§created_at: DateTime<Utc>
👎Deprecated since 0.1609.0: define deserialization types in client code
§label: Option<EventLabel>
👎Deprecated since 0.1609.0: define deserialization types in client code
The label may be None if the label has been deleted.
action: String
👎Deprecated since 0.1609.0: define deserialization types in client code
Implementations§
source§impl ResourceLabelEvent
impl ResourceLabelEvent
sourcepub fn event_target(&self) -> Option<ResourceLabelEventTarget>
👎Deprecated since 0.1609.0: define deserialization types in client code
pub fn event_target(&self) -> Option<ResourceLabelEventTarget>
Returns the id of the merge request or issue that this event is from
Trait Implementations§
source§impl Clone for ResourceLabelEvent
impl Clone for ResourceLabelEvent
source§fn clone(&self) -> ResourceLabelEvent
fn clone(&self) -> ResourceLabelEvent
Returns a copy 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 ResourceLabelEvent
impl Debug for ResourceLabelEvent
source§impl<'de> Deserialize<'de> for ResourceLabelEvent
impl<'de> Deserialize<'de> for ResourceLabelEvent
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
Auto Trait Implementations§
impl Freeze for ResourceLabelEvent
impl RefUnwindSafe for ResourceLabelEvent
impl Send for ResourceLabelEvent
impl Sync for ResourceLabelEvent
impl Unpin for ResourceLabelEvent
impl UnwindSafe for ResourceLabelEvent
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