pub struct PageCreate {
pub icon_name: Option<String>,
pub image_url: Option<String>,
pub name: Option<String>,
pub page_content: Option<PageCreateContent>,
pub parent_page_id: Option<String>,
pub subtitle: Option<String>,
}
Expand description
Payload for creating a new page in a doc.
JSON schema
{
"description": "Payload for creating a new page in a doc.",
"type": "object",
"properties": {
"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"
},
"name": {
"description": "Name of the page.",
"examples": [
"Launch Status"
],
"type": "string"
},
"pageContent": {
"$ref": "#/components/schemas/PageCreateContent"
},
"parentPageId": {
"description": "The ID of this new page's parent, if creating a
subpage.",
"examples": [
"canvas-tuVwxYz"
],
"type": "string"
},
"subtitle": {
"description": "Subtitle of the page.",
"examples": [
"See the status of launch-related tasks."
],
"type": "string"
}
},
"additionalProperties": false,
"x-schema-name": "PageCreate"
}
Fields§
§icon_name: Option<String>
Name of the icon.
image_url: Option<String>
Url of the cover image to use.
name: Option<String>
Name of the page.
page_content: Option<PageCreateContent>
§parent_page_id: Option<String>
The ID of this new page’s parent, if creating a subpage.
subtitle: Option<String>
Subtitle of the page.
Trait Implementations§
Source§impl Clone for PageCreate
impl Clone for PageCreate
Source§fn clone(&self) -> PageCreate
fn clone(&self) -> PageCreate
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 PageCreate
impl Debug for PageCreate
Source§impl Default for PageCreate
impl Default for PageCreate
Source§impl<'de> Deserialize<'de> for PageCreate
impl<'de> Deserialize<'de> for PageCreate
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<&PageCreate> for PageCreate
impl From<&PageCreate> for PageCreate
Source§fn from(value: &PageCreate) -> Self
fn from(value: &PageCreate) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PageCreate
impl RefUnwindSafe for PageCreate
impl Send for PageCreate
impl Sync for PageCreate
impl Unpin for PageCreate
impl UnwindSafe for PageCreate
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