pub struct AdminCreateKindBody {
pub custom_example: Option<AdminCreateKindBodyCustomExample>,
pub description: Option<AdminCreateKindBodyDescription>,
pub description_translations: Map<String, Value>,
pub key: AdminCreateKindBodyKey,
pub label: AdminCreateKindBodyLabel,
pub label_translations: Map<String, Value>,
pub prose_post: Option<String>,
pub prose_post_translations: Map<String, Value>,
pub prose_pre: Option<String>,
pub prose_pre_translations: Map<String, Value>,
pub public_page_copy: Option<AdminCreateKindBodyPublicPageCopy>,
pub public_page_enabled: Option<bool>,
}Expand description
AdminCreateKindBody
JSON schema
{
"type": "object",
"required": [
"key",
"label"
],
"properties": {
"customExample": {
"type": [
"object",
"null"
],
"properties": {
"json": {
"type": "string"
},
"yaml": {
"type": "string"
}
}
},
"description": {
"type": [
"string",
"null"
],
"maxLength": 280
},
"descriptionTranslations": {
"type": "object"
},
"key": {
"type": "string",
"maxLength": 40,
"minLength": 1
},
"label": {
"type": "string",
"maxLength": 60,
"minLength": 1
},
"labelTranslations": {
"type": "object"
},
"prosePost": {
"type": [
"string",
"null"
]
},
"prosePostTranslations": {
"type": "object"
},
"prosePre": {
"type": [
"string",
"null"
]
},
"prosePreTranslations": {
"type": "object"
},
"publicPageCopy": {
"type": [
"object",
"null"
],
"required": [
"hero",
"intro"
],
"properties": {
"hero": {
"type": [
"string",
"null"
],
"maxLength": 80
},
"heroTranslations": {
"type": "object"
},
"intro": {
"type": [
"string",
"null"
],
"maxLength": 600
},
"introTranslations": {
"type": "object"
}
}
},
"publicPageEnabled": {
"type": "boolean"
}
}
}Fields§
§custom_example: Option<AdminCreateKindBodyCustomExample>§description: Option<AdminCreateKindBodyDescription>§description_translations: Map<String, Value>§key: AdminCreateKindBodyKey§label: AdminCreateKindBodyLabel§label_translations: Map<String, Value>§prose_post: Option<String>§prose_post_translations: Map<String, Value>§prose_pre: Option<String>§prose_pre_translations: Map<String, Value>§public_page_copy: Option<AdminCreateKindBodyPublicPageCopy>§public_page_enabled: Option<bool>Implementations§
Source§impl AdminCreateKindBody
impl AdminCreateKindBody
pub fn builder() -> AdminCreateKindBody
Trait Implementations§
Source§impl Clone for AdminCreateKindBody
impl Clone for AdminCreateKindBody
Source§fn clone(&self) -> AdminCreateKindBody
fn clone(&self) -> AdminCreateKindBody
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 AdminCreateKindBody
impl Debug for AdminCreateKindBody
Source§impl<'de> Deserialize<'de> for AdminCreateKindBody
impl<'de> Deserialize<'de> for AdminCreateKindBody
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<&AdminCreateKindBody> for AdminCreateKindBody
impl From<&AdminCreateKindBody> for AdminCreateKindBody
Source§fn from(value: &AdminCreateKindBody) -> Self
fn from(value: &AdminCreateKindBody) -> Self
Converts to this type from the input type.
Source§impl From<AdminCreateKindBody> for AdminCreateKindBody
impl From<AdminCreateKindBody> for AdminCreateKindBody
Source§fn from(value: AdminCreateKindBody) -> Self
fn from(value: AdminCreateKindBody) -> Self
Converts to this type from the input type.
Source§impl Serialize for AdminCreateKindBody
impl Serialize for AdminCreateKindBody
Source§impl TryFrom<AdminCreateKindBody> for AdminCreateKindBody
impl TryFrom<AdminCreateKindBody> for AdminCreateKindBody
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: AdminCreateKindBody) -> Result<Self, ConversionError>
fn try_from(value: AdminCreateKindBody) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for AdminCreateKindBody
impl RefUnwindSafe for AdminCreateKindBody
impl Send for AdminCreateKindBody
impl Sync for AdminCreateKindBody
impl Unpin for AdminCreateKindBody
impl UnsafeUnpin for AdminCreateKindBody
impl UnwindSafe for AdminCreateKindBody
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