pub struct SectionTaskInsertRequest {
pub task: String,
pub insert_before: Option<String>,
pub insert_after: Option<String>,
}
Fields
task: String
The task to add to this section.
insert_before: Option<String>
An existing task within this section before which the added task should be inserted. Cannot be provided together with insert_after.
insert_after: Option<String>
An existing task within this section after which the added task should be inserted. Cannot be provided together with insert_before.
Implementations
sourceimpl SectionTaskInsertRequest
impl SectionTaskInsertRequest
pub fn new(task: String) -> SectionTaskInsertRequest
Trait Implementations
sourceimpl Clone for SectionTaskInsertRequest
impl Clone for SectionTaskInsertRequest
sourcefn clone(&self) -> SectionTaskInsertRequest
fn clone(&self) -> SectionTaskInsertRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SectionTaskInsertRequest
impl Debug for SectionTaskInsertRequest
sourceimpl<'de> Deserialize<'de> for SectionTaskInsertRequest
impl<'de> Deserialize<'de> for SectionTaskInsertRequest
sourcefn 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
sourceimpl PartialEq<SectionTaskInsertRequest> for SectionTaskInsertRequest
impl PartialEq<SectionTaskInsertRequest> for SectionTaskInsertRequest
sourcefn eq(&self, other: &SectionTaskInsertRequest) -> bool
fn eq(&self, other: &SectionTaskInsertRequest) -> bool
sourceimpl Serialize for SectionTaskInsertRequest
impl Serialize for SectionTaskInsertRequest
impl StructuralPartialEq for SectionTaskInsertRequest
Auto Trait Implementations
impl RefUnwindSafe for SectionTaskInsertRequest
impl Send for SectionTaskInsertRequest
impl Sync for SectionTaskInsertRequest
impl Unpin for SectionTaskInsertRequest
impl UnwindSafe for SectionTaskInsertRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more