Struct gitlab::api::projects::ShareProjectBuilder
source · pub struct ShareProjectBuilder<'a> { /* private fields */ }Expand description
Builder for ShareProject.
Implementations§
sourcepub fn project<VALUE: Into<NameOrId<'a>>>(&mut self, value: VALUE) -> &mut Self
pub fn project<VALUE: Into<NameOrId<'a>>>(&mut self, value: VALUE) -> &mut Self
The project to add the user to.
sourcepub fn group_access(&mut self, value: AccessLevel) -> &mut Self
pub fn group_access(&mut self, value: AccessLevel) -> &mut Self
The access level for the group within the project.
sourcepub fn expires_at(&mut self, value: NaiveDate) -> &mut Self
pub fn expires_at(&mut self, value: NaiveDate) -> &mut Self
When the user’s access expires.
sourcepub fn build(&self) -> Result<ShareProject<'a>, ShareProjectBuilderError>
pub fn build(&self) -> Result<ShareProject<'a>, ShareProjectBuilderError>
Trait Implementations§
source§fn clone(&self) -> ShareProjectBuilder<'a>
fn clone(&self) -> ShareProjectBuilder<'a>
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 moreAuto Trait Implementations§
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