pub struct AdminCreateDocsSectionBody {
pub body: AdminCreateDocsSectionBodyBody,
pub body_translations: Map<String, Value>,
pub id: AdminCreateDocsSectionBodyId,
pub position: AdminCreateDocsSectionBodyPosition,
pub title: Option<AdminCreateDocsSectionBodyTitle>,
pub title_translations: Map<String, Value>,
}Expand description
AdminCreateDocsSectionBody
JSON schema
{
"type": "object",
"required": [
"body",
"id",
"position",
"title"
],
"properties": {
"body": {
"type": "string",
"minLength": 1
},
"bodyTranslations": {
"type": "object"
},
"id": {
"type": "string",
"maxLength": 60,
"minLength": 1
},
"position": {
"anyOf": [
{
"type": "string"
},
{
"type": "string"
},
{
"type": "string"
},
{
"type": "string"
},
{
"type": "object",
"required": [
"kind",
"slot"
],
"properties": {
"kind": {
"type": "string",
"maxLength": 40,
"minLength": 1
},
"slot": {
"anyOf": [
{
"type": "string"
},
{
"type": "string"
}
]
}
}
}
]
},
"title": {
"type": [
"string",
"null"
],
"maxLength": 200
},
"titleTranslations": {
"type": "object"
}
}
}Fields§
§body: AdminCreateDocsSectionBodyBody§body_translations: Map<String, Value>§id: AdminCreateDocsSectionBodyId§position: AdminCreateDocsSectionBodyPosition§title: Option<AdminCreateDocsSectionBodyTitle>§title_translations: Map<String, Value>Implementations§
Source§impl AdminCreateDocsSectionBody
impl AdminCreateDocsSectionBody
pub fn builder() -> AdminCreateDocsSectionBody
Trait Implementations§
Source§impl Clone for AdminCreateDocsSectionBody
impl Clone for AdminCreateDocsSectionBody
Source§fn clone(&self) -> AdminCreateDocsSectionBody
fn clone(&self) -> AdminCreateDocsSectionBody
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 AdminCreateDocsSectionBody
impl Debug for AdminCreateDocsSectionBody
Source§impl<'de> Deserialize<'de> for AdminCreateDocsSectionBody
impl<'de> Deserialize<'de> for AdminCreateDocsSectionBody
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<&AdminCreateDocsSectionBody> for AdminCreateDocsSectionBody
impl From<&AdminCreateDocsSectionBody> for AdminCreateDocsSectionBody
Source§fn from(value: &AdminCreateDocsSectionBody) -> Self
fn from(value: &AdminCreateDocsSectionBody) -> Self
Converts to this type from the input type.
Source§impl From<AdminCreateDocsSectionBody> for AdminCreateDocsSectionBody
impl From<AdminCreateDocsSectionBody> for AdminCreateDocsSectionBody
Source§fn from(value: AdminCreateDocsSectionBody) -> Self
fn from(value: AdminCreateDocsSectionBody) -> Self
Converts to this type from the input type.
Source§impl TryFrom<AdminCreateDocsSectionBody> for AdminCreateDocsSectionBody
impl TryFrom<AdminCreateDocsSectionBody> for AdminCreateDocsSectionBody
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: AdminCreateDocsSectionBody) -> Result<Self, ConversionError>
fn try_from(value: AdminCreateDocsSectionBody) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for AdminCreateDocsSectionBody
impl RefUnwindSafe for AdminCreateDocsSectionBody
impl Send for AdminCreateDocsSectionBody
impl Sync for AdminCreateDocsSectionBody
impl Unpin for AdminCreateDocsSectionBody
impl UnsafeUnpin for AdminCreateDocsSectionBody
impl UnwindSafe for AdminCreateDocsSectionBody
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