Struct gitlab::api::projects::repository::ArchiveBuilder
source · pub struct ArchiveBuilder<'a> { /* private fields */ }
Expand description
Builder for Archive
.
Implementations§
source§impl<'a> ArchiveBuilder<'a>
impl<'a> ArchiveBuilder<'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 ID or URL-encoded path of the project.
sourcepub fn format(&mut self, value: ArchiveFormat) -> &mut Self
pub fn format(&mut self, value: ArchiveFormat) -> &mut Self
The archive format to request. Defaults to tar.gz if unspecified.
sourcepub fn sha<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn sha<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
The commit SHA to get. Defaults to the tip of the default branch if unspecified.
Trait Implementations§
source§impl<'a> Clone for ArchiveBuilder<'a>
impl<'a> Clone for ArchiveBuilder<'a>
source§fn clone(&self) -> ArchiveBuilder<'a>
fn clone(&self) -> ArchiveBuilder<'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 ArchiveBuilder<'a>
impl<'a> Send for ArchiveBuilder<'a>
impl<'a> Sync for ArchiveBuilder<'a>
impl<'a> Unpin for ArchiveBuilder<'a>
impl<'a> UnwindSafe for ArchiveBuilder<'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