pub struct PageUpdate {
pub content_update: Option<PageUpdateContentUpdate>,
pub icon_name: Option<String>,
pub image_url: Option<String>,
pub is_hidden: Option<bool>,
pub name: Option<String>,
pub subtitle: Option<String>,
}
Expand description
Payload for updating a page.
JSON schema
{
"description": "Payload for updating a page.",
"type": "object",
"properties": {
"contentUpdate": {
"allOf": [
{
"description": "Content with which to update an existing
page.",
"type": "object",
"additionalProperties": false
},
{
"$ref": "#/components/schemas/PageContentUpdate"
}
]
},
"iconName": {
"description": "Name of the icon.",
"examples": [
"rocket"
],
"type": "string"
},
"imageUrl": {
"description": "Url of the cover image to use.",
"examples": [
"https://example.com/image.jpg"
],
"type": "string"
},
"isHidden": {
"description": "Whether the page is hidden or not. Note that for
pages that cannot be hidden, like the sole top-level page in a doc, this
will be ignored.",
"examples": [
true
],
"type": "boolean"
},
"name": {
"description": "Name of the page.",
"examples": [
"Launch Status"
],
"type": "string"
},
"subtitle": {
"description": "Subtitle of the page.",
"examples": [
"See the status of launch-related tasks."
],
"type": "string"
}
},
"additionalProperties": false,
"x-schema-name": "PageUpdate"
}
Fields§
§content_update: Option<PageUpdateContentUpdate>
§icon_name: Option<String>
Name of the icon.
image_url: Option<String>
Url of the cover image to use.
Whether the page is hidden or not. Note that for pages that cannot be hidden, like the sole top-level page in a doc, this will be ignored.
name: Option<String>
Name of the page.
subtitle: Option<String>
Subtitle of the page.
Trait Implementations§
Source§impl Clone for PageUpdate
impl Clone for PageUpdate
Source§fn clone(&self) -> PageUpdate
fn clone(&self) -> PageUpdate
Returns a duplicate of the value. Read more
1.0.0 · 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 PageUpdate
impl Debug for PageUpdate
Source§impl Default for PageUpdate
impl Default for PageUpdate
Source§impl<'de> Deserialize<'de> for PageUpdate
impl<'de> Deserialize<'de> for PageUpdate
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<&PageUpdate> for PageUpdate
impl From<&PageUpdate> for PageUpdate
Source§fn from(value: &PageUpdate) -> Self
fn from(value: &PageUpdate) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PageUpdate
impl RefUnwindSafe for PageUpdate
impl Send for PageUpdate
impl Sync for PageUpdate
impl Unpin for PageUpdate
impl UnwindSafe for PageUpdate
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