pub struct ListDrafts200ResponseInner {
pub kind: UserDraftItemKind,
pub path: String,
pub summary: Option<String>,
pub draft_path: Option<String>,
pub draft_only: bool,
pub legacy_draft: bool,
pub created_at: String,
pub can_write: bool,
pub mine: bool,
pub draft_users: Option<Vec<ListScripts200ResponseInnerAllOfDraftUsersInner>>,
}Fields§
§kind: UserDraftItemKind§path: String§summary: Option<String>Best-effort, read from the draft JSON’s summary field when the editor shape carries one.
draft_path: Option<String>User-typed friendly path from the draft JSON’s draft_path, when set and different from the storage path (e.g. a never-deployed item parked at u/{user}/draft_{uuid}).
draft_only: boolNo deployed counterpart exists at this path — the draft is the whole item.
legacy_draft: boolThe listed draft is a legacy workspace-level row (email NULL) predating the per-user drafts migration. Only true when no per-user draft exists at this path.
created_at: String§can_write: boolWhether the current user may deploy/discard this draft (same check the deploy/discard endpoints enforce).
mine: boolThe row belongs to the current user (own draft or the legacy no-owner row) and is therefore actionable. Always true in the default listing; with all_users=true, other users’ rows are false (view-only).
draft_users: Option<Vec<ListScripts200ResponseInnerAllOfDraftUsersInner>>Draft authors at this (path, kind) — the legacy NULL-email row surfaced as a null username. Populated only for the shared full-page-editor kinds (script/flow/app/raw_app); omitted for drawer kinds, which keep their drafts private. Feeds the Draft badge’s owner-avatar circles.
Implementations§
Source§impl ListDrafts200ResponseInner
impl ListDrafts200ResponseInner
pub fn new( kind: UserDraftItemKind, path: String, draft_only: bool, legacy_draft: bool, created_at: String, can_write: bool, mine: bool, ) -> ListDrafts200ResponseInner
Trait Implementations§
Source§impl Clone for ListDrafts200ResponseInner
impl Clone for ListDrafts200ResponseInner
Source§fn clone(&self) -> ListDrafts200ResponseInner
fn clone(&self) -> ListDrafts200ResponseInner
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ListDrafts200ResponseInner
impl Debug for ListDrafts200ResponseInner
Source§impl Default for ListDrafts200ResponseInner
impl Default for ListDrafts200ResponseInner
Source§fn default() -> ListDrafts200ResponseInner
fn default() -> ListDrafts200ResponseInner
Source§impl<'de> Deserialize<'de> for ListDrafts200ResponseInner
impl<'de> Deserialize<'de> for ListDrafts200ResponseInner
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>,
Source§impl PartialEq for ListDrafts200ResponseInner
impl PartialEq for ListDrafts200ResponseInner
Source§fn eq(&self, other: &ListDrafts200ResponseInner) -> bool
fn eq(&self, other: &ListDrafts200ResponseInner) -> bool
self and other values to be equal, and is used by ==.