pub struct TaskUpdateBuilder { /* private fields */ }Expand description
Builder for constructing validated task update payloads.
Implementations§
Source§impl TaskUpdateBuilder
impl TaskUpdateBuilder
Sourcepub fn notes(self, notes: impl Into<String>) -> Self
pub fn notes(self, notes: impl Into<String>) -> Self
Replace notes with the provided plain text.
Sourcepub fn clear_notes(self) -> Self
pub fn clear_notes(self) -> Self
Clear the plain text notes.
Sourcepub fn html_notes(self, notes: impl Into<String>) -> Self
pub fn html_notes(self, notes: impl Into<String>) -> Self
Set HTML formatted notes.
Sourcepub fn clear_html_notes(self) -> Self
pub fn clear_html_notes(self) -> Self
Clear HTML notes.
Sourcepub fn clear_assignee(self) -> Self
pub fn clear_assignee(self) -> Self
Remove the current assignee.
Sourcepub fn clear_due_on(self) -> Self
pub fn clear_due_on(self) -> Self
Clear the due date.
Sourcepub fn clear_due_at(self) -> Self
pub fn clear_due_at(self) -> Self
Clear the due timestamp.
Sourcepub fn clear_start_on(self) -> Self
pub fn clear_start_on(self) -> Self
Clear the start date.
Sourcepub fn clear_start_at(self) -> Self
pub fn clear_start_at(self) -> Self
Clear the start timestamp.
Sourcepub fn clear_parent(self) -> Self
pub fn clear_parent(self) -> Self
Remove the parent task.
Replace tags with the provided identifiers.
Sourcepub fn followers<I, S>(self, followers: I) -> Self
pub fn followers<I, S>(self, followers: I) -> Self
Replace followers with the provided identifiers.
Sourcepub fn custom_field(
self,
field_gid: impl Into<String>,
value: CustomFieldValue,
) -> Self
pub fn custom_field( self, field_gid: impl Into<String>, value: CustomFieldValue, ) -> Self
Set a custom field value.
Sourcepub fn build(self) -> Result<TaskUpdateRequest, TaskValidationError>
pub fn build(self) -> Result<TaskUpdateRequest, TaskValidationError>
Methods from Deref<Target = TaskUpdateData>§
Trait Implementations§
Source§impl Clone for TaskUpdateBuilder
impl Clone for TaskUpdateBuilder
Source§fn clone(&self) -> TaskUpdateBuilder
fn clone(&self) -> TaskUpdateBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TaskUpdateBuilder
impl Debug for TaskUpdateBuilder
Source§impl Default for TaskUpdateBuilder
impl Default for TaskUpdateBuilder
Source§fn default() -> TaskUpdateBuilder
fn default() -> TaskUpdateBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TaskUpdateBuilder
impl RefUnwindSafe for TaskUpdateBuilder
impl Send for TaskUpdateBuilder
impl Sync for TaskUpdateBuilder
impl Unpin for TaskUpdateBuilder
impl UnsafeUnpin for TaskUpdateBuilder
impl UnwindSafe for TaskUpdateBuilder
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