pub enum PageCreateContentVariant2 {
Page {
include_subpages: bool,
source_doc_id: String,
source_page_id: String,
type_: PageCreateContentVariant2Type,
},
Document {
source_doc_id: String,
type_: PageCreateContentVariant2Type,
},
}Expand description
PageCreateContentVariant2
JSON schema
{
"oneOf": [
{
"type": "object",
"required": [
"includeSubpages",
"mode",
"sourceDocId",
"sourcePageId",
"type"
],
"properties": {
"includeSubpages": {
"description": "Include subpages in the sync page.",
"type": "boolean"
},
"mode": {
"description": "Indicates a single-page sync page.",
"type": "string",
"enum": [
"page"
],
"x-tsType": "SyncPageTypeEnum.Page"
},
"sourceDocId": {
"description": "The id of the document to insert as a sync
page.",
"examples": [
"sHbI4uIwiK"
],
"type": "string"
},
"sourcePageId": {
"description": "The page id to insert as a sync page.",
"examples": [
"canvas-IjkLmnO"
],
"type": "string"
},
"type": {
"description": "Indicates a page that embeds other Coda
content.",
"type": "string",
"enum": [
"syncPage"
],
"x-tsType": "PageTypeEnum.SyncPage"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"mode",
"sourceDocId",
"type"
],
"properties": {
"mode": {
"description": "Indicates a full doc sync page.",
"type": "string",
"enum": [
"document"
],
"x-tsType": "SyncPageTypeEnum.Document"
},
"sourceDocId": {
"description": "The id of the document to insert as a sync
page.",
"examples": [
"sHbI4uIwiK"
],
"type": "string"
},
"type": {
"description": "Indicates a page that embeds other content.",
"type": "string",
"enum": [
"syncPage"
],
"x-tsType": "PageTypeEnum.SyncPage"
}
},
"additionalProperties": false
}
]
}Variants§
Page
Fields
§
type_: PageCreateContentVariant2TypeIndicates a page that embeds other Coda content.
Document
Fields
§
type_: PageCreateContentVariant2TypeIndicates a page that embeds other content.
Trait Implementations§
Source§impl Clone for PageCreateContentVariant2
impl Clone for PageCreateContentVariant2
Source§fn clone(&self) -> PageCreateContentVariant2
fn clone(&self) -> PageCreateContentVariant2
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 PageCreateContentVariant2
impl Debug for PageCreateContentVariant2
Source§impl<'de> Deserialize<'de> for PageCreateContentVariant2
impl<'de> Deserialize<'de> for PageCreateContentVariant2
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<&PageCreateContentVariant2> for PageCreateContentVariant2
impl From<&PageCreateContentVariant2> for PageCreateContentVariant2
Source§fn from(value: &PageCreateContentVariant2) -> Self
fn from(value: &PageCreateContentVariant2) -> Self
Converts to this type from the input type.
Source§impl From<PageCreateContentVariant2> for PageCreateContent
impl From<PageCreateContentVariant2> for PageCreateContent
Source§fn from(value: PageCreateContentVariant2) -> Self
fn from(value: PageCreateContentVariant2) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PageCreateContentVariant2
impl RefUnwindSafe for PageCreateContentVariant2
impl Send for PageCreateContentVariant2
impl Sync for PageCreateContentVariant2
impl Unpin for PageCreateContentVariant2
impl UnwindSafe for PageCreateContentVariant2
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