pub struct ToClone {
pub entity: EntityId,
pub path: String,
pub remote: String,
pub address: String,
pub others: Vec<(String, String)>,
pub branch: Option<String>,
pub pinned: Option<String>,
pub recorded_by: String,
pub refused: Option<String>,
}Expand description
A repository that this device’s copy of a tree does not hold: what a clone would take, and where it comes from, or why it may not be cloned.
Fields§
§entity: EntityIdIts entity, which Library::prepare_clone and Library::repository_cloned take.
path: StringIts folder, as a path in the tree.
remote: StringThe remote to clone from: of those a clone may take, the one its branch follows, or
else origin, or else the first by name.
address: StringThat remote’s address.
others: Vec<(String, String)>The other remotes to add, those a clone may take.
branch: Option<String>The branch to check out.
pinned: Option<String>The commit to check out the branch at, if it is pinned.
recorded_by: StringThe device whose replica recorded the address, as the space names it.
refused: Option<String>Why it may not be cloned, if it may not.
Trait Implementations§
impl Eq for ToClone
impl StructuralPartialEq for ToClone
Auto Trait Implementations§
impl Forget for ToClone
impl Freeze for ToClone
impl Move for ToClone
impl RefUnwindSafe for ToClone
impl Send for ToClone
impl Sync for ToClone
impl Unpin for ToClone
impl UnsafeUnpin for ToClone
impl UnwindSafe for ToClone
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.