#[non_exhaustive]pub struct TaskUpdateInput {Show 13 fields
pub org: Option<String>,
pub namespace: Option<String>,
pub agent: Option<String>,
pub task_id: String,
pub if_match_version: Integer,
pub title: Option<Option<String>>,
pub brief: Option<Option<HashMap<String, Value>>>,
pub priority: Option<Option<Integer>>,
pub deadline: Option<Option<String>>,
pub not_before: Option<Option<String>>,
pub clear_deadline: Option<bool>,
pub clear_not_before: Option<bool>,
pub note: Option<String>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.org: Option<String>§namespace: Option<String>§agent: Option<String>§task_id: String§if_match_version: Integer§title: Option<Option<String>>§brief: Option<Option<HashMap<String, Value>>>§priority: Option<Option<Integer>>§deadline: Option<Option<String>>§not_before: Option<Option<String>>§clear_deadline: Option<bool>§clear_not_before: Option<bool>§note: Option<String>Implementations§
Source§impl TaskUpdateInput
impl TaskUpdateInput
pub fn new( task_id: impl Into<String>, if_match_version: impl Into<Integer>, ) -> Self
pub fn org(self, org: impl Into<String>) -> Self
pub fn namespace(self, namespace: impl Into<String>) -> Self
pub fn agent(self, agent: impl Into<String>) -> Self
pub fn title(self, title: impl Into<String>) -> Self
pub fn title_null(self) -> Self
pub fn brief(self, brief: HashMap<String, Value>) -> Self
pub fn brief_null(self) -> Self
pub fn priority(self, priority: impl Into<Integer>) -> Self
pub fn priority_null(self) -> Self
pub fn deadline(self, deadline: impl Into<String>) -> Self
pub fn deadline_null(self) -> Self
pub fn not_before(self, not_before: impl Into<String>) -> Self
pub fn not_before_null(self) -> Self
pub fn clear_deadline(self, clear_deadline: bool) -> Self
pub fn clear_not_before(self, clear_not_before: bool) -> Self
pub fn note(self, note: impl Into<String>) -> Self
pub async fn send( self, client: &Client, options: CallOptions, ) -> Result<CallResult<TaskUpdateOutput>, CallFailure>
Trait Implementations§
Source§impl Clone for TaskUpdateInput
impl Clone for TaskUpdateInput
Source§impl Debug for TaskUpdateInput
impl Debug for TaskUpdateInput
Source§impl<'de> Deserialize<'de> for TaskUpdateInput
impl<'de> Deserialize<'de> for TaskUpdateInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TaskUpdateInput
impl PartialEq for TaskUpdateInput
Source§impl Serialize for TaskUpdateInput
impl Serialize for TaskUpdateInput
impl StructuralPartialEq for TaskUpdateInput
Auto Trait Implementations§
impl Forget for TaskUpdateInput
impl Freeze for TaskUpdateInput
impl Move for TaskUpdateInput
impl RefUnwindSafe for TaskUpdateInput
impl Send for TaskUpdateInput
impl Sync for TaskUpdateInput
impl Unpin for TaskUpdateInput
impl UnsafeUnpin for TaskUpdateInput
impl UnwindSafe for TaskUpdateInput
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