pub struct StatusCreate {
pub description: Option<String>,
pub name: String,
pub status_category: StatusCategory,
}
Expand description
StatusCreate : Details of the status being created.
Fields§
§description: Option<String>
The description of the status.
name: String
The name of the status.
status_category: StatusCategory
The category of the status.
Implementations§
Source§impl StatusCreate
impl StatusCreate
Sourcepub fn new(name: String, status_category: StatusCategory) -> StatusCreate
pub fn new(name: String, status_category: StatusCategory) -> StatusCreate
Details of the status being created.
Trait Implementations§
Source§impl Clone for StatusCreate
impl Clone for StatusCreate
Source§fn clone(&self) -> StatusCreate
fn clone(&self) -> StatusCreate
Returns a copy 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 StatusCreate
impl Debug for StatusCreate
Source§impl Default for StatusCreate
impl Default for StatusCreate
Source§fn default() -> StatusCreate
fn default() -> StatusCreate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StatusCreate
impl<'de> Deserialize<'de> for StatusCreate
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 StatusCreate
impl PartialEq for StatusCreate
Source§impl Serialize for StatusCreate
impl Serialize for StatusCreate
impl StructuralPartialEq for StatusCreate
Auto Trait Implementations§
impl Freeze for StatusCreate
impl RefUnwindSafe for StatusCreate
impl Send for StatusCreate
impl Sync for StatusCreate
impl Unpin for StatusCreate
impl UnwindSafe for StatusCreate
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