pub struct AdminUpdateKindBody {Show 13 fields
pub custom_example: Option<AdminUpdateKindBodyCustomExample>,
pub description: Option<AdminUpdateKindBodyDescription>,
pub description_translations: Map<String, Value>,
pub extensions_schema: Option<Map<String, Value>>,
pub key: AdminUpdateKindBodyKey,
pub label: AdminUpdateKindBodyLabel,
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<AdminUpdateKindBodyPublicPageCopy>,
pub public_page_enabled: Option<bool>,
}Expand description
AdminUpdateKindBody
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"
},
"extensionsSchema": {
"type": [
"object",
"null"
]
},
"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<AdminUpdateKindBodyCustomExample>§description: Option<AdminUpdateKindBodyDescription>§description_translations: Map<String, Value>§extensions_schema: Option<Map<String, Value>>§key: AdminUpdateKindBodyKey§label: AdminUpdateKindBodyLabel§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<AdminUpdateKindBodyPublicPageCopy>§public_page_enabled: Option<bool>Implementations§
Source§impl AdminUpdateKindBody
impl AdminUpdateKindBody
pub fn builder() -> AdminUpdateKindBody
Trait Implementations§
Source§impl Clone for AdminUpdateKindBody
impl Clone for AdminUpdateKindBody
Source§fn clone(&self) -> AdminUpdateKindBody
fn clone(&self) -> AdminUpdateKindBody
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 AdminUpdateKindBody
impl Debug for AdminUpdateKindBody
Source§impl<'de> Deserialize<'de> for AdminUpdateKindBody
impl<'de> Deserialize<'de> for AdminUpdateKindBody
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<&AdminUpdateKindBody> for AdminUpdateKindBody
impl From<&AdminUpdateKindBody> for AdminUpdateKindBody
Source§fn from(value: &AdminUpdateKindBody) -> Self
fn from(value: &AdminUpdateKindBody) -> Self
Converts to this type from the input type.
Source§impl From<AdminUpdateKindBody> for AdminUpdateKindBody
impl From<AdminUpdateKindBody> for AdminUpdateKindBody
Source§fn from(value: AdminUpdateKindBody) -> Self
fn from(value: AdminUpdateKindBody) -> Self
Converts to this type from the input type.
Source§impl Serialize for AdminUpdateKindBody
impl Serialize for AdminUpdateKindBody
Source§impl TryFrom<AdminUpdateKindBody> for AdminUpdateKindBody
impl TryFrom<AdminUpdateKindBody> for AdminUpdateKindBody
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: AdminUpdateKindBody) -> Result<Self, ConversionError>
fn try_from(value: AdminUpdateKindBody) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for AdminUpdateKindBody
impl RefUnwindSafe for AdminUpdateKindBody
impl Send for AdminUpdateKindBody
impl Sync for AdminUpdateKindBody
impl Unpin for AdminUpdateKindBody
impl UnsafeUnpin for AdminUpdateKindBody
impl UnwindSafe for AdminUpdateKindBody
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