pub struct PageContentItem {
pub id: String,
pub item_content: Option<PageContentItemContent>,
pub type_: PageContentItemType,
}Expand description
Content item in a page (canvas).
JSON schema
{
"description": "Content item in a page (canvas).",
"type": "object",
"required": [
"id",
"type"
],
"properties": {
"id": {
"description": "ID of the content item.",
"examples": [
"cl-2ZUJuRhNuN"
],
"type": "string"
},
"itemContent": {
"$ref": "#/components/schemas/PageContentItemContent"
},
"type": {
"$ref": "#/components/schemas/PageContentItemType"
}
},
"additionalProperties": false,
"x-schema-name": "PageContentItem"
}Fields§
§id: StringID of the content item.
item_content: Option<PageContentItemContent>§type_: PageContentItemTypeTrait Implementations§
Source§impl Clone for PageContentItem
impl Clone for PageContentItem
Source§fn clone(&self) -> PageContentItem
fn clone(&self) -> PageContentItem
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 PageContentItem
impl Debug for PageContentItem
Source§impl<'de> Deserialize<'de> for PageContentItem
impl<'de> Deserialize<'de> for PageContentItem
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<&PageContentItem> for PageContentItem
impl From<&PageContentItem> for PageContentItem
Source§fn from(value: &PageContentItem) -> Self
fn from(value: &PageContentItem) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PageContentItem
impl RefUnwindSafe for PageContentItem
impl Send for PageContentItem
impl Sync for PageContentItem
impl Unpin for PageContentItem
impl UnwindSafe for PageContentItem
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