Struct gitlab::api::projects::deploy_keys::EnableDeployKeyBuilder
source · pub struct EnableDeployKeyBuilder<'a> { /* private fields */ }Expand description
Builder for EnableDeployKey.
Implementations§
source§impl<'a> EnableDeployKeyBuilder<'a>
impl<'a> EnableDeployKeyBuilder<'a>
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 enable the deploy key on.
sourcepub fn deploy_key(&mut self, value: u64) -> &mut Self
pub fn deploy_key(&mut self, value: u64) -> &mut Self
The deploy key to enable.
sourcepub fn build(&self) -> Result<EnableDeployKey<'a>, EnableDeployKeyBuilderError>
pub fn build(&self) -> Result<EnableDeployKey<'a>, EnableDeployKeyBuilderError>
Trait Implementations§
source§impl<'a> Clone for EnableDeployKeyBuilder<'a>
impl<'a> Clone for EnableDeployKeyBuilder<'a>
source§fn clone(&self) -> EnableDeployKeyBuilder<'a>
fn clone(&self) -> EnableDeployKeyBuilder<'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§
impl<'a> RefUnwindSafe for EnableDeployKeyBuilder<'a>
impl<'a> Send for EnableDeployKeyBuilder<'a>
impl<'a> Sync for EnableDeployKeyBuilder<'a>
impl<'a> Unpin for EnableDeployKeyBuilder<'a>
impl<'a> UnwindSafe for EnableDeployKeyBuilder<'a>
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