pub struct CreateLabelBody {
pub color: String,
pub description: Option<String>,
pub name: String,
}Expand description
CreateLabelBody
JSON schema
{
"type": "object",
"required": [
"color",
"name"
],
"properties": {
"color": {
"type": "string"
},
"description": {
"type": [
"string",
"null"
]
},
"name": {
"type": "string"
}
}
}Fields§
§color: String§description: Option<String>§name: StringImplementations§
Source§impl CreateLabelBody
impl CreateLabelBody
pub fn builder() -> CreateLabelBody
Trait Implementations§
Source§impl Clone for CreateLabelBody
impl Clone for CreateLabelBody
Source§fn clone(&self) -> CreateLabelBody
fn clone(&self) -> CreateLabelBody
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 CreateLabelBody
impl Debug for CreateLabelBody
Source§impl<'de> Deserialize<'de> for CreateLabelBody
impl<'de> Deserialize<'de> for CreateLabelBody
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 From<&CreateLabelBody> for CreateLabelBody
impl From<&CreateLabelBody> for CreateLabelBody
Source§fn from(value: &CreateLabelBody) -> Self
fn from(value: &CreateLabelBody) -> Self
Converts to this type from the input type.
Source§impl From<CreateLabelBody> for CreateLabelBody
impl From<CreateLabelBody> for CreateLabelBody
Source§fn from(value: CreateLabelBody) -> Self
fn from(value: CreateLabelBody) -> Self
Converts to this type from the input type.
Source§impl Serialize for CreateLabelBody
impl Serialize for CreateLabelBody
Source§impl TryFrom<CreateLabelBody> for CreateLabelBody
impl TryFrom<CreateLabelBody> for CreateLabelBody
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: CreateLabelBody) -> Result<Self, ConversionError>
fn try_from(value: CreateLabelBody) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CreateLabelBody
impl RefUnwindSafe for CreateLabelBody
impl Send for CreateLabelBody
impl Sync for CreateLabelBody
impl Unpin for CreateLabelBody
impl UnsafeUnpin for CreateLabelBody
impl UnwindSafe for CreateLabelBody
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