pub struct Targets {
pub repositories: BTreeMap<String, BTreeSet<String>>,
pub boards: BTreeSet<BoardRef>,
pub problems: Vec<String>,
}Expand description
Everything to mirror, and what could not be read while finding it out.
Fields§
§repositories: BTreeMap<String, BTreeSet<String>>owner/repo, and every commit some worktree has it checked out at.
boards: BTreeSet<BoardRef>Every board some worktree’s project settings name.
problems: Vec<String>What could not be read, by where it was: project/worktree: why.
While there are any, what the mirror holds is never forgotten: a worktree that could not be read this minute is not a worktree that stopped having repositories, and treating it as one would delete what it holds on every transient failure.
Implementations§
Source§impl Targets
impl Targets
Sourcepub fn of(workshop: &Workshop) -> Result<Self>
pub fn of(workshop: &Workshop) -> Result<Self>
What every project in the workshop has on GitHub: each worktree’s repositories and commits, and the boards its checkout’s settings name.
Sourcepub fn add_checkout(&mut self, path: &Path) -> Result<()>
pub fn add_checkout(&mut self, path: &Path) -> Result<()>
Add what one checkout holds.
Sourcepub fn board_owners(&self) -> BTreeSet<String>
pub fn board_owners(&self) -> BTreeSet<String>
The owners whose board lists are needed to find the referenced boards.
Trait Implementations§
impl Eq for Targets
impl StructuralPartialEq for Targets
Auto Trait Implementations§
impl Freeze for Targets
impl RefUnwindSafe for Targets
impl Send for Targets
impl Sync for Targets
impl Unpin for Targets
impl UnsafeUnpin for Targets
impl UnwindSafe for Targets
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§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.