Struct asana::models::section_request::SectionRequest
source · [−]pub struct SectionRequest {
pub project: String,
pub name: String,
pub insert_before: Option<String>,
pub insert_after: Option<String>,
}
Fields
project: String
Create-Only The project to create the section in
name: String
The text to be displayed as the section name. This cannot be an empty string.
insert_before: Option<String>
An existing section within this project before which the added section should be inserted. Cannot be provided together with insert_after.
insert_after: Option<String>
An existing section within this project after which the added section should be inserted. Cannot be provided together with insert_before.
Implementations
sourceimpl SectionRequest
impl SectionRequest
pub fn new(project: String, name: String) -> SectionRequest
Trait Implementations
sourceimpl Clone for SectionRequest
impl Clone for SectionRequest
sourcefn clone(&self) -> SectionRequest
fn clone(&self) -> SectionRequest
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 SectionRequest
impl Debug for SectionRequest
sourceimpl<'de> Deserialize<'de> for SectionRequest
impl<'de> Deserialize<'de> for SectionRequest
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<SectionRequest> for SectionRequest
impl PartialEq<SectionRequest> for SectionRequest
sourcefn eq(&self, other: &SectionRequest) -> bool
fn eq(&self, other: &SectionRequest) -> bool
sourceimpl Serialize for SectionRequest
impl Serialize for SectionRequest
impl StructuralPartialEq for SectionRequest
Auto Trait Implementations
impl RefUnwindSafe for SectionRequest
impl Send for SectionRequest
impl Sync for SectionRequest
impl Unpin for SectionRequest
impl UnwindSafe for SectionRequest
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