pub struct PageContent {
pub content: String,
pub format: PageContentFormat,
}
Expand description
Content for a page (canvas).
JSON schema
{
"description": "Content for a page (canvas).",
"type": "object",
"required": [
"content",
"format"
],
"properties": {
"content": {
"description": "The actual page content.",
"examples": [
"<p><b>This</b> is rich text</p>"
],
"type": "string"
},
"format": {
"$ref": "#/components/schemas/PageContentFormat"
}
},
"additionalProperties": false,
"x-schema-name": "PageContent"
}
Fields§
§content: String
The actual page content.
format: PageContentFormat
Trait Implementations§
Source§impl Clone for PageContent
impl Clone for PageContent
Source§fn clone(&self) -> PageContent
fn clone(&self) -> PageContent
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 PageContent
impl Debug for PageContent
Source§impl<'de> Deserialize<'de> for PageContent
impl<'de> Deserialize<'de> for PageContent
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<&PageContent> for PageContent
impl From<&PageContent> for PageContent
Source§fn from(value: &PageContent) -> Self
fn from(value: &PageContent) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PageContent
impl RefUnwindSafe for PageContent
impl Send for PageContent
impl Sync for PageContent
impl Unpin for PageContent
impl UnwindSafe for PageContent
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