pub struct GitRefTreeOptsBuilder { /* private fields */ }
Expand description
Builder for GitRefTreeOpts
.
Implementations§
Source§impl GitRefTreeOptsBuilder
impl GitRefTreeOptsBuilder
Sourcepub fn depth<VALUE: Into<isize>>(&mut self, value: VALUE) -> &mut Self
pub fn depth<VALUE: Into<isize>>(&mut self, value: VALUE) -> &mut Self
The depth of the tree to fetch.
Sourcepub fn discard_git_dir<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn discard_git_dir<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Set to true to discard .git directory.
Sourcepub fn build(&self) -> Result<GitRefTreeOpts, GitRefTreeOptsBuilderError>
pub fn build(&self) -> Result<GitRefTreeOpts, GitRefTreeOptsBuilderError>
Trait Implementations§
Source§impl Clone for GitRefTreeOptsBuilder
impl Clone for GitRefTreeOptsBuilder
Source§fn clone(&self) -> GitRefTreeOptsBuilder
fn clone(&self) -> GitRefTreeOptsBuilder
Returns a duplicate 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 Freeze for GitRefTreeOptsBuilder
impl RefUnwindSafe for GitRefTreeOptsBuilder
impl Send for GitRefTreeOptsBuilder
impl Sync for GitRefTreeOptsBuilder
impl Unpin for GitRefTreeOptsBuilder
impl UnwindSafe for GitRefTreeOptsBuilder
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