pub struct SectionRequest {
pub project: String,
pub name: String,
pub insert_before: Option<String>,
pub insert_after: Option<String>,
}Fields§
§project: StringCreate-Only The project to create the section in
name: StringThe 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§
Source§impl SectionRequest
impl SectionRequest
pub fn new(project: String, name: String) -> SectionRequest
Trait Implementations§
Source§impl Clone for SectionRequest
impl Clone for SectionRequest
Source§fn clone(&self) -> SectionRequest
fn clone(&self) -> SectionRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 SectionRequest
impl Debug for SectionRequest
Source§impl<'de> Deserialize<'de> for SectionRequest
impl<'de> Deserialize<'de> for SectionRequest
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 SectionRequest
impl PartialEq for SectionRequest
Source§impl Serialize for SectionRequest
impl Serialize for SectionRequest
impl StructuralPartialEq for SectionRequest
Auto Trait Implementations§
impl Freeze for SectionRequest
impl RefUnwindSafe for SectionRequest
impl Send for SectionRequest
impl Sync for SectionRequest
impl Unpin for SectionRequest
impl UnwindSafe for SectionRequest
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