pub struct DocPublish {
pub category_names: Vec<String>,
pub discoverable: Option<bool>,
pub earn_credit: Option<bool>,
pub mode: Option<DocPublishMode>,
pub slug: Option<String>,
}
Expand description
Payload for publishing a doc or or updating its publishing information.
JSON schema
{
"description": "Payload for publishing a doc or or updating its
publishing information.",
"type": "object",
"properties": {
"categoryNames": {
"description": "The names of categories to apply to the document.",
"examples": [
[
"Project management"
]
],
"type": "array",
"items": {
"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"
},
"mode": {
"$ref": "#/components/schemas/DocPublishMode"
},
"slug": {
"description": "Slug for the published doc.",
"examples": [
"my-doc"
],
"type": "string"
}
},
"additionalProperties": false,
"x-schema-name": "DocPublish"
}
Fields§
§category_names: Vec<String>
The names of categories to apply to the document.
discoverable: Option<bool>
If true, indicates that the doc is discoverable.
earn_credit: Option<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.
mode: Option<DocPublishMode>
§slug: Option<String>
Slug for the published doc.
Trait Implementations§
Source§impl Clone for DocPublish
impl Clone for DocPublish
Source§fn clone(&self) -> DocPublish
fn clone(&self) -> DocPublish
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 DocPublish
impl Debug for DocPublish
Source§impl Default for DocPublish
impl Default for DocPublish
Source§impl<'de> Deserialize<'de> for DocPublish
impl<'de> Deserialize<'de> for DocPublish
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<&DocPublish> for DocPublish
impl From<&DocPublish> for DocPublish
Source§fn from(value: &DocPublish) -> Self
fn from(value: &DocPublish) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DocPublish
impl RefUnwindSafe for DocPublish
impl Send for DocPublish
impl Sync for DocPublish
impl Unpin for DocPublish
impl UnwindSafe for DocPublish
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