pub struct Doc {Show 17 fields
pub browser_link: String,
pub created_at: DateTime<Utc>,
pub doc_size: Option<DocSize>,
pub folder: FolderReference,
pub folder_id: String,
pub href: String,
pub icon: Option<Icon>,
pub id: String,
pub name: String,
pub owner: String,
pub owner_name: String,
pub published: Option<DocPublished>,
pub source_doc: Option<DocSourceDoc>,
pub type_: DocType,
pub updated_at: DateTime<Utc>,
pub workspace: WorkspaceReference,
pub workspace_id: String,
}Expand description
Metadata about a Coda doc.
JSON schema
{
"description": "Metadata about a Coda doc.",
"type": "object",
"required": [
"browserLink",
"createdAt",
"folder",
"folderId",
"href",
"id",
"name",
"owner",
"ownerName",
"type",
"updatedAt",
"workspace",
"workspaceId"
],
"properties": {
"browserLink": {
"description": "Browser-friendly link to the Coda doc.",
"examples": [
"https://coda.io/d/_dAbCDeFGH"
],
"type": "string",
"format": "url"
},
"createdAt": {
"description": "Timestamp for when the doc was created.",
"examples": [
"2018-04-11T00:18:57.946Z"
],
"type": "string",
"format": "date-time"
},
"docSize": {
"$ref": "#/components/schemas/DocSize"
},
"folder": {
"$ref": "#/components/schemas/FolderReference"
},
"folderId": {
"description": "ID of the Coda folder containing this doc.",
"deprecated": true,
"examples": [
"fl-1Ab234"
],
"type": "string"
},
"href": {
"description": "API link to the Coda doc.",
"examples": [
"https://coda.io/apis/v1/docs/AbCDeFGH"
],
"type": "string",
"format": "url"
},
"icon": {
"$ref": "#/components/schemas/Icon"
},
"id": {
"description": "ID of the Coda doc.",
"examples": [
"AbCDeFGH"
],
"type": "string"
},
"name": {
"description": "Name of the doc.",
"examples": [
"Product Launch Hub"
],
"type": "string"
},
"owner": {
"description": "Email address of the doc owner.",
"examples": [
"user@example.com"
],
"type": "string",
"format": "email"
},
"ownerName": {
"description": "Name of the doc owner.",
"examples": [
"Some User"
],
"type": "string"
},
"published": {
"$ref": "#/components/schemas/DocPublished"
},
"sourceDoc": {
"allOf": [
{
"description": "Reference to a Coda doc from which this doc was
copied, if any.",
"type": "object",
"additionalProperties": false
},
{
"$ref": "#/components/schemas/DocReference"
}
]
},
"type": {
"description": "The type of this resource.",
"type": "string",
"enum": [
"doc"
],
"x-tsType": "Type.Doc"
},
"updatedAt": {
"description": "Timestamp for when the doc was last modified.",
"examples": [
"2018-04-11T00:18:57.946Z"
],
"type": "string",
"format": "date-time"
},
"workspace": {
"$ref": "#/components/schemas/WorkspaceReference"
},
"workspaceId": {
"description": "ID of the Coda workspace containing this doc.",
"deprecated": true,
"examples": [
"ws-1Ab234"
],
"type": "string"
}
},
"additionalProperties": false,
"x-schema-name": "Doc"
}Fields§
§browser_link: StringBrowser-friendly link to the Coda doc.
created_at: DateTime<Utc>Timestamp for when the doc was created.
doc_size: Option<DocSize>§folder: FolderReference§folder_id: StringID of the Coda folder containing this doc.
href: StringAPI link to the Coda doc.
icon: Option<Icon>§id: StringID of the Coda doc.
name: StringName of the doc.
owner: StringEmail address of the doc owner.
owner_name: StringName of the doc owner.
published: Option<DocPublished>§source_doc: Option<DocSourceDoc>§type_: DocTypeThe type of this resource.
updated_at: DateTime<Utc>Timestamp for when the doc was last modified.
workspace: WorkspaceReference§workspace_id: StringID of the Coda workspace containing this doc.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Doc
impl<'de> Deserialize<'de> for Doc
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 PaginatedResponse<Doc> for DocList
impl PaginatedResponse<Doc> for DocList
fn items(&self) -> &Vec<Doc>
fn next_page_token(&self) -> Option<&NextPageToken>
fn into_items(self) -> Vec<Doc>
Auto Trait Implementations§
impl Freeze for Doc
impl RefUnwindSafe for Doc
impl Send for Doc
impl Sync for Doc
impl Unpin for Doc
impl UnwindSafe for Doc
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