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,
}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: StringImplementations§
Source§impl ListDrafts200ResponseInner
impl ListDrafts200ResponseInner
pub fn new( kind: UserDraftItemKind, path: String, draft_only: bool, legacy_draft: bool, created_at: String, ) -> ListDrafts200ResponseInner
Trait Implementations§
Source§impl Clone for ListDrafts200ResponseInner
impl Clone for ListDrafts200ResponseInner
Source§fn clone(&self) -> ListDrafts200ResponseInner
fn clone(&self) -> ListDrafts200ResponseInner
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ListDrafts200ResponseInner
impl Debug for ListDrafts200ResponseInner
Source§impl Default for ListDrafts200ResponseInner
impl Default for ListDrafts200ResponseInner
Source§fn default() -> ListDrafts200ResponseInner
fn default() -> ListDrafts200ResponseInner
Returns the “default value” for a type. Read more
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ListDrafts200ResponseInner
impl PartialEq for ListDrafts200ResponseInner
Source§fn eq(&self, other: &ListDrafts200ResponseInner) -> bool
fn eq(&self, other: &ListDrafts200ResponseInner) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ListDrafts200ResponseInner
Auto Trait Implementations§
impl Freeze for ListDrafts200ResponseInner
impl RefUnwindSafe for ListDrafts200ResponseInner
impl Send for ListDrafts200ResponseInner
impl Sync for ListDrafts200ResponseInner
impl Unpin for ListDrafts200ResponseInner
impl UnsafeUnpin for ListDrafts200ResponseInner
impl UnwindSafe for ListDrafts200ResponseInner
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