pub struct CloneOptions {
pub depth: Option<u32>,
pub want_ref: Option<Vec<u8>>,
}Fields§
§depth: Option<u32>shallow clone の深さ。None は全履歴。
want_ref: Option<Vec<u8>>取得する ref 名 (完全一致、例: b“refs/heads/main“)。None は全 ref。
Trait Implementations§
Source§impl Clone for CloneOptions
impl Clone for CloneOptions
Source§fn clone(&self) -> CloneOptions
fn clone(&self) -> CloneOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CloneOptions
impl Debug for CloneOptions
Source§impl Default for CloneOptions
impl Default for CloneOptions
Source§fn default() -> CloneOptions
fn default() -> CloneOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CloneOptions
impl RefUnwindSafe for CloneOptions
impl Send for CloneOptions
impl Sync for CloneOptions
impl Unpin for CloneOptions
impl UnsafeUnpin for CloneOptions
impl UnwindSafe for CloneOptions
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