pub struct DocPublished {
pub browser_link: String,
pub categories: Vec<DocCategory>,
pub description: Option<String>,
pub discoverable: bool,
pub earn_credit: bool,
pub image_link: Option<String>,
pub mode: DocPublishMode,
}
Expand description
Information about the publishing state of the document.
JSON schema
{
"description": "Information about the publishing state of the
document.",
"type": "object",
"required": [
"browserLink",
"categories",
"discoverable",
"earnCredit",
"mode"
],
"properties": {
"browserLink": {
"description": "URL to the published doc.",
"examples": [
"https://coda.io/@coda/hello-world"
],
"type": "string"
},
"categories": {
"description": "Categories applied to the doc.",
"examples": [
[
"Project Management"
]
],
"type": "array",
"items": {
"$ref": "#/components/schemas/DocCategory"
}
},
"description": {
"description": "Description of the published doc.",
"examples": [
"Hello World!"
],
"type": "string"
},
"discoverable": {
"description": "If true, indicates that the doc is discoverable.",
"examples": [
true
],
"type": "boolean"
},
"earnCredit": {
"description": "If true, new users may be required to sign in to
view content within this document. You will receive Coda credit for each
user who signs up via your doc.\n",
"examples": [
true
],
"type": "boolean"
},
"imageLink": {
"description": "URL to the cover image for the published doc.",
"type": "string"
},
"mode": {
"$ref": "#/components/schemas/DocPublishMode"
}
},
"additionalProperties": false,
"x-schema-name": "DocPublished"
}
Fields§
§browser_link: String
URL to the published doc.
categories: Vec<DocCategory>
Categories applied to the doc.
description: Option<String>
Description of the published doc.
discoverable: bool
If true, indicates that the doc is discoverable.
earn_credit: bool
If true, new users may be required to sign in to view content within this document. You will receive Coda credit for each user who signs up via your doc.
image_link: Option<String>
URL to the cover image for the published doc.
mode: DocPublishMode
Trait Implementations§
Source§impl Clone for DocPublished
impl Clone for DocPublished
Source§fn clone(&self) -> DocPublished
fn clone(&self) -> DocPublished
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 DocPublished
impl Debug for DocPublished
Source§impl<'de> Deserialize<'de> for DocPublished
impl<'de> Deserialize<'de> for DocPublished
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<&DocPublished> for DocPublished
impl From<&DocPublished> for DocPublished
Source§fn from(value: &DocPublished) -> Self
fn from(value: &DocPublished) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DocPublished
impl RefUnwindSafe for DocPublished
impl Send for DocPublished
impl Sync for DocPublished
impl Unpin for DocPublished
impl UnwindSafe for DocPublished
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