pub struct UpdatePluginBody {
pub category: Option<UpdatePluginBodyCategory>,
pub featured: Option<bool>,
pub featured_order: Option<f64>,
pub owner_id: Option<String>,
pub rejection_reason: Option<UpdatePluginBodyRejectionReason>,
pub status: Option<UpdatePluginBodyStatus>,
pub tags: Vec<UpdatePluginBodyTagsItem>,
pub verified: Option<bool>,
}Expand description
UpdatePluginBody
JSON schema
{
"type": "object",
"properties": {
"category": {
"type": "string",
"maxLength": 40
},
"featured": {
"type": "boolean"
},
"featuredOrder": {
"type": "number"
},
"ownerId": {
"type": "string"
},
"rejectionReason": {
"type": "string",
"maxLength": 500
},
"status": {
"type": "string",
"enum": [
"approved",
"pending",
"rejected"
]
},
"tags": {
"type": "array",
"items": {
"type": "string",
"maxLength": 30
},
"maxItems": 16
},
"verified": {
"type": "boolean"
}
}
}Fields§
§category: Option<UpdatePluginBodyCategory>§featured: Option<bool>§featured_order: Option<f64>§owner_id: Option<String>§rejection_reason: Option<UpdatePluginBodyRejectionReason>§status: Option<UpdatePluginBodyStatus>§verified: Option<bool>Implementations§
Source§impl UpdatePluginBody
impl UpdatePluginBody
pub fn builder() -> UpdatePluginBody
Trait Implementations§
Source§impl Clone for UpdatePluginBody
impl Clone for UpdatePluginBody
Source§fn clone(&self) -> UpdatePluginBody
fn clone(&self) -> UpdatePluginBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UpdatePluginBody
impl Debug for UpdatePluginBody
Source§impl Default for UpdatePluginBody
impl Default for UpdatePluginBody
Source§impl<'de> Deserialize<'de> for UpdatePluginBody
impl<'de> Deserialize<'de> for UpdatePluginBody
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<&UpdatePluginBody> for UpdatePluginBody
impl From<&UpdatePluginBody> for UpdatePluginBody
Source§fn from(value: &UpdatePluginBody) -> Self
fn from(value: &UpdatePluginBody) -> Self
Converts to this type from the input type.
Source§impl From<UpdatePluginBody> for UpdatePluginBody
impl From<UpdatePluginBody> for UpdatePluginBody
Source§fn from(value: UpdatePluginBody) -> Self
fn from(value: UpdatePluginBody) -> Self
Converts to this type from the input type.
Source§impl Serialize for UpdatePluginBody
impl Serialize for UpdatePluginBody
Source§impl TryFrom<UpdatePluginBody> for UpdatePluginBody
impl TryFrom<UpdatePluginBody> for UpdatePluginBody
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: UpdatePluginBody) -> Result<Self, ConversionError>
fn try_from(value: UpdatePluginBody) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for UpdatePluginBody
impl RefUnwindSafe for UpdatePluginBody
impl Send for UpdatePluginBody
impl Sync for UpdatePluginBody
impl Unpin for UpdatePluginBody
impl UnsafeUnpin for UpdatePluginBody
impl UnwindSafe for UpdatePluginBody
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