pub struct CreateRequestBody {
pub description: CreateRequestBodyDescription,
pub name: CreateRequestBodyName,
pub slug: CreateRequestBodySlug,
}Expand description
CreateRequestBody
JSON schema
{
"type": "object",
"required": [
"description",
"name",
"slug"
],
"properties": {
"description": {
"description": "What the plugin should do.",
"type": "string",
"maxLength": 2000,
"minLength": 1
},
"name": {
"description": "Human-readable plugin name.",
"type": "string",
"maxLength": 120,
"minLength": 1
},
"slug": {
"description": "URL-safe slug. Lowercase letters, digits, hyphens.",
"type": "string",
"maxLength": 80,
"minLength": 1,
"pattern": "^[a-z0-9-]+$"
}
}
}Fields§
§description: CreateRequestBodyDescriptionWhat the plugin should do.
name: CreateRequestBodyNameHuman-readable plugin name.
slug: CreateRequestBodySlugURL-safe slug. Lowercase letters, digits, hyphens.
Implementations§
Source§impl CreateRequestBody
impl CreateRequestBody
pub fn builder() -> CreateRequestBody
Trait Implementations§
Source§impl Clone for CreateRequestBody
impl Clone for CreateRequestBody
Source§fn clone(&self) -> CreateRequestBody
fn clone(&self) -> CreateRequestBody
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 CreateRequestBody
impl Debug for CreateRequestBody
Source§impl<'de> Deserialize<'de> for CreateRequestBody
impl<'de> Deserialize<'de> for CreateRequestBody
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<&CreateRequestBody> for CreateRequestBody
impl From<&CreateRequestBody> for CreateRequestBody
Source§fn from(value: &CreateRequestBody) -> Self
fn from(value: &CreateRequestBody) -> Self
Converts to this type from the input type.
Source§impl From<CreateRequestBody> for CreateRequestBody
impl From<CreateRequestBody> for CreateRequestBody
Source§fn from(value: CreateRequestBody) -> Self
fn from(value: CreateRequestBody) -> Self
Converts to this type from the input type.
Source§impl Serialize for CreateRequestBody
impl Serialize for CreateRequestBody
Source§impl TryFrom<CreateRequestBody> for CreateRequestBody
impl TryFrom<CreateRequestBody> for CreateRequestBody
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: CreateRequestBody) -> Result<Self, ConversionError>
fn try_from(value: CreateRequestBody) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CreateRequestBody
impl RefUnwindSafe for CreateRequestBody
impl Send for CreateRequestBody
impl Sync for CreateRequestBody
impl Unpin for CreateRequestBody
impl UnsafeUnpin for CreateRequestBody
impl UnwindSafe for CreateRequestBody
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