Struct gitlab::api::projects::deploy_keys::CreateDeployKeyBuilder
source · [−]pub struct CreateDeployKeyBuilder<'a> { /* private fields */ }
Expand description
Builder for CreateDeployKey
.
Implementations
sourceimpl<'a> CreateDeployKeyBuilder<'a>
impl<'a> CreateDeployKeyBuilder<'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 add the deploy key to
sourcepub fn title<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn title<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
The title of the deploy key
sourcepub fn key<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn key<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
The key value as found in an openssh public key file or authorized_key file
sourcepub fn can_push(&mut self, value: bool) -> &mut Self
pub fn can_push(&mut self, value: bool) -> &mut Self
Can this deploy key push to the project repository
sourcepub fn build(&self) -> Result<CreateDeployKey<'a>, CreateDeployKeyBuilderError>
pub fn build(&self) -> Result<CreateDeployKey<'a>, CreateDeployKeyBuilderError>
Trait Implementations
sourceimpl<'a> Clone for CreateDeployKeyBuilder<'a>
impl<'a> Clone for CreateDeployKeyBuilder<'a>
sourcefn clone(&self) -> CreateDeployKeyBuilder<'a>
fn clone(&self) -> CreateDeployKeyBuilder<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn 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 CreateDeployKeyBuilder<'a>
impl<'a> Send for CreateDeployKeyBuilder<'a>
impl<'a> Sync for CreateDeployKeyBuilder<'a>
impl<'a> Unpin for CreateDeployKeyBuilder<'a>
impl<'a> UnwindSafe for CreateDeployKeyBuilder<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more