pub struct TaskCreate {
pub source: SourceName,
pub project: NativeId,
pub title: String,
pub body: Body,
pub status: Option<StatusCategory>,
pub labels: Vec<String>,
pub repositories: Vec<Repository>,
pub depends_on: Vec<GlobalId>,
pub delivers: Vec<GlobalId>,
pub metadata: BTreeMap<MetadataKey, Value>,
pub assets: Vec<AssetPayload>,
}Expand description
One task to create in one source.
Fields§
§source: SourceNameThe configured source to create it in.
project: NativeIdThe project it is filed under, by that source’s own id.
title: StringIts title.
body: BodyIts content.
status: Option<StatusCategory>Its status category; todo when none is given.
labels: Vec<String>The names of its labels.
repositories: Vec<Repository>The repositories its work changes.
depends_on: Vec<GlobalId>The tasks it depends on — its own source’s written without their source, any other’s qualified.
delivers: Vec<GlobalId>The tasks it delivers. Each is kept in step with it once it lands, as every write of a task that delivers keeps them.
metadata: BTreeMap<MetadataKey, Value>The caller’s own metadata keys — never one this product reserves, which a
MetadataKey cannot name.
assets: Vec<AssetPayload>The image assets it holds, each referenced by its content as ./<name>; none for a
task whose content references none.
Trait Implementations§
Source§impl Clone for TaskCreate
impl Clone for TaskCreate
Source§impl Debug for TaskCreate
impl Debug for TaskCreate
Source§impl PartialEq for TaskCreate
impl PartialEq for TaskCreate
impl StructuralPartialEq for TaskCreate
Auto Trait Implementations§
impl Freeze for TaskCreate
impl RefUnwindSafe for TaskCreate
impl Send for TaskCreate
impl Sync for TaskCreate
impl Unpin for TaskCreate
impl UnsafeUnpin for TaskCreate
impl UnwindSafe for TaskCreate
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