pub enum WriteTarget<'a> {
New {
repositories: &'a [Repository],
project: Option<&'a NativeId>,
},
Existing(&'a NativeId),
}Expand description
The item a write is about to reach, so a source can say who can read where it lands.
A backend may keep different items in places of different visibility — a GitHub board
creates each issue in a repository decided per item, and keeps an existing issue where
it is — so TaskSource::visibility is asked about the
item rather than about the source as a whole.
Variants§
New
An item the write creates.
Fields
§
repositories: &'a [Repository]The repositories it names.
Existing(&'a NativeId)
An item this source already holds.
Trait Implementations§
Source§impl<'a> Clone for WriteTarget<'a>
impl<'a> Clone for WriteTarget<'a>
impl<'a> Copy for WriteTarget<'a>
Source§impl<'a> Debug for WriteTarget<'a>
impl<'a> Debug for WriteTarget<'a>
impl<'a> Eq for WriteTarget<'a>
Source§impl<'a> PartialEq for WriteTarget<'a>
impl<'a> PartialEq for WriteTarget<'a>
impl<'a> StructuralPartialEq for WriteTarget<'a>
Auto Trait Implementations§
impl<'a> Freeze for WriteTarget<'a>
impl<'a> RefUnwindSafe for WriteTarget<'a>
impl<'a> Send for WriteTarget<'a>
impl<'a> Sync for WriteTarget<'a>
impl<'a> Unpin for WriteTarget<'a>
impl<'a> UnsafeUnpin for WriteTarget<'a>
impl<'a> UnwindSafe for WriteTarget<'a>
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