pub struct AdminUpdateDocsSectionBody {
pub body: AdminUpdateDocsSectionBodyBody,
pub body_translations: Map<String, Value>,
pub id: AdminUpdateDocsSectionBodyId,
pub position: AdminUpdateDocsSectionBodyPosition,
pub title: Option<AdminUpdateDocsSectionBodyTitle>,
pub title_translations: Map<String, Value>,
}Expand description
AdminUpdateDocsSectionBody
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: AdminUpdateDocsSectionBodyBody§body_translations: Map<String, Value>§id: AdminUpdateDocsSectionBodyId§position: AdminUpdateDocsSectionBodyPosition§title: Option<AdminUpdateDocsSectionBodyTitle>§title_translations: Map<String, Value>Implementations§
Source§impl AdminUpdateDocsSectionBody
impl AdminUpdateDocsSectionBody
pub fn builder() -> AdminUpdateDocsSectionBody
Trait Implementations§
Source§impl Clone for AdminUpdateDocsSectionBody
impl Clone for AdminUpdateDocsSectionBody
Source§fn clone(&self) -> AdminUpdateDocsSectionBody
fn clone(&self) -> AdminUpdateDocsSectionBody
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 AdminUpdateDocsSectionBody
impl Debug for AdminUpdateDocsSectionBody
Source§impl<'de> Deserialize<'de> for AdminUpdateDocsSectionBody
impl<'de> Deserialize<'de> for AdminUpdateDocsSectionBody
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<&AdminUpdateDocsSectionBody> for AdminUpdateDocsSectionBody
impl From<&AdminUpdateDocsSectionBody> for AdminUpdateDocsSectionBody
Source§fn from(value: &AdminUpdateDocsSectionBody) -> Self
fn from(value: &AdminUpdateDocsSectionBody) -> Self
Converts to this type from the input type.
Source§impl From<AdminUpdateDocsSectionBody> for AdminUpdateDocsSectionBody
impl From<AdminUpdateDocsSectionBody> for AdminUpdateDocsSectionBody
Source§fn from(value: AdminUpdateDocsSectionBody) -> Self
fn from(value: AdminUpdateDocsSectionBody) -> Self
Converts to this type from the input type.
Source§impl TryFrom<AdminUpdateDocsSectionBody> for AdminUpdateDocsSectionBody
impl TryFrom<AdminUpdateDocsSectionBody> for AdminUpdateDocsSectionBody
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: AdminUpdateDocsSectionBody) -> Result<Self, ConversionError>
fn try_from(value: AdminUpdateDocsSectionBody) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for AdminUpdateDocsSectionBody
impl RefUnwindSafe for AdminUpdateDocsSectionBody
impl Send for AdminUpdateDocsSectionBody
impl Sync for AdminUpdateDocsSectionBody
impl Unpin for AdminUpdateDocsSectionBody
impl UnsafeUnpin for AdminUpdateDocsSectionBody
impl UnwindSafe for AdminUpdateDocsSectionBody
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