Struct gitlab::systemhooks::ProjectMemberSystemHook
source · pub struct ProjectMemberSystemHook {Show 13 fields
pub event_name: ProjectMemberEvent,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub project_name: String,
pub project_path: String,
pub project_path_with_namespace: String,
pub project_id: u64,
pub user_username: String,
pub user_name: String,
pub user_email: String,
pub user_id: u64,
pub access_level: HumanAccessLevel,
pub project_visibility: ProjectVisibility,
}Expand description
A project membership hook.
Fields§
§event_name: ProjectMemberEventThe event which occurred.
created_at: DateTime<Utc>When the membership was created.
updated_at: DateTime<Utc>When the membership was last updated.
project_name: StringThe name of the project.
project_path: StringThe path of the project (used for URLs).
project_path_with_namespace: StringThe namespace and path of the project (used for URLs).
project_id: u64The ID of the project.
user_username: StringThe username of the user added as a member.
user_name: StringThe name of the user added as a member.
user_email: StringThe email address of the user added as a member.
user_id: u64The ID of the user.
access_level: HumanAccessLevelThe access level granted to the user.
project_visibility: ProjectVisibilityThe visibility of the project.
Trait Implementations§
source§impl Clone for ProjectMemberSystemHook
impl Clone for ProjectMemberSystemHook
source§fn clone(&self) -> ProjectMemberSystemHook
fn clone(&self) -> ProjectMemberSystemHook
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 ProjectMemberSystemHook
impl Debug for ProjectMemberSystemHook
source§impl<'de> Deserialize<'de> for ProjectMemberSystemHook
impl<'de> Deserialize<'de> for ProjectMemberSystemHook
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 ProjectMemberSystemHook
impl RefUnwindSafe for ProjectMemberSystemHook
impl Send for ProjectMemberSystemHook
impl Sync for ProjectMemberSystemHook
impl Unpin for ProjectMemberSystemHook
impl UnwindSafe for ProjectMemberSystemHook
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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