Struct gitlab::webhooks::IssueHookAttrs[][src]

pub struct IssueHookAttrs {
Show fields pub id: IssueId, pub title: String, pub assignee_id: Option<UserId>, pub author_id: UserId, pub project_id: ProjectId, pub created_at: HookDate, pub updated_at: HookDate, pub deleted_at: Option<HookDate>, pub closed_at: Option<HookDate>, pub due_date: Option<NaiveDate>, pub updated_by_id: Option<UserId>, pub moved_to_id: Option<Value>, pub branch_name: Option<String>, pub description: Option<String>, pub milestone_id: Option<MilestoneId>, pub state: IssueState, pub iid: IssueInternalId, pub confidential: bool, pub time_estimate: u64, pub total_time_spent: u64, pub human_time_estimate: Option<String>, pub human_total_time_spent: Option<String>, pub url: Option<String>, pub action: Option<IssueAction>,
}

Issue information exposed in hooks.

Fields

id: IssueId

The ID of the issue.

title: String

The title of the issue.

assignee_id: Option<UserId>

The ID of the assignee of the issue.

author_id: UserId

The ID of the author of the issue.

project_id: ProjectId

The ID of the project.

created_at: HookDate

When the issue was created.

updated_at: HookDate

When the issue was last updated.

deleted_at: Option<HookDate>

When the issue was deleted.

closed_at: Option<HookDate>

When the issue was closed.

due_date: Option<NaiveDate>

When the issue is due.

updated_by_id: Option<UserId>

The ID of the user which last updated the issue.

moved_to_id: Option<Value>branch_name: Option<String>

The branch name for the issue.

description: Option<String>

The description of the issue.

milestone_id: Option<MilestoneId>

The ID of the milestone of the issue.

state: IssueState

The state of the issue.

iid: IssueInternalId

The user-visible ID of the issue.

confidential: bool

Whether the issue is confidential or not.

time_estimate: u64

The time estimate, in seconds.

total_time_spent: u64

The total time spent, in seconds.

human_time_estimate: Option<String>

The time estimate, as a human-readable string.

human_total_time_spent: Option<String>

The total time spent, as a human-readable string.

url: Option<String>

The URL of the issue.

action: Option<IssueAction>

The type of action which caused the hook.

Trait Implementations

impl Clone for IssueHookAttrs[src]

fn clone(&self) -> IssueHookAttrs[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for IssueHookAttrs[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl<'de> Deserialize<'de> for IssueHookAttrs[src]

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
    __D: Deserializer<'de>, 
[src]

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for IssueHookAttrs[src]

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
    __S: Serializer
[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T> Instrument for T[src]

fn instrument(self, span: Span) -> Instrumented<Self>[src]

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

fn in_current_span(self) -> Instrumented<Self>[src]

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]