pub struct Fetch {
pub want: Vec<String>,
pub have: Vec<String>,
pub filter: Option<String>,
pub deepen: Option<usize>,
pub hash_kind: HashKind,
pub include_tag: bool,
}Expand description
Fetch remote objects.
§Example
let fetch = Fetch {
want: vec![want.to_owned()],
have: vec![have.to_owned()],
filter: if blobs {
None
} else {
Some("blob:none".to_owned())
},
deepen: None,
hash_kind: HashKind::Sha1,
};Fields§
§want: Vec<String>§have: Vec<String>§filter: Option<String>§deepen: Option<usize>§hash_kind: HashKind§include_tag: boolTrait Implementations§
Auto Trait Implementations§
impl Freeze for Fetch
impl RefUnwindSafe for Fetch
impl Send for Fetch
impl Sync for Fetch
impl Unpin for Fetch
impl UnsafeUnpin for Fetch
impl UnwindSafe for Fetch
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