pub struct ListableScript {Show 22 fields
pub hash: String,
pub path: String,
pub summary: String,
pub description: Option<String>,
pub created_at: String,
pub archived: bool,
pub extra_perms: HashMap<String, bool>,
pub language: ScriptLang,
pub kind: Kind,
pub starred: bool,
pub tag: Option<String>,
pub draft_only: Option<bool>,
pub has_deploy_errors: bool,
pub ws_error_handler_muted: Option<bool>,
pub auto_kind: Option<String>,
pub use_codebase: Option<bool>,
pub deployment_msg: Option<String>,
pub labels: Option<Vec<String>>,
pub inherited_labels: Option<Vec<String>>,
pub is_draft: Option<bool>,
pub draft_path: Option<String>,
pub draft_users: Option<Vec<ListDrafts200ResponseInnerDraftUsersInner>>,
}Expand description
ListableScript : A script as returned by the list endpoint: the deployed row’s summary fields, without its content, lock or schema.
Fields§
§hash: String§path: String§summary: String§description: Option<String>§created_at: String§archived: bool§extra_perms: HashMap<String, bool>§language: ScriptLang§kind: Kind§starred: bool§tag: Option<String>§draft_only: Option<bool>True on rows built from a draft that was never deployed. Omitted on deployed rows.
has_deploy_errors: bool§ws_error_handler_muted: Option<bool>§auto_kind: Option<String>§use_codebase: Option<bool>Omitted when false.
deployment_msg: Option<String>Only returned with with_deployment_msg=true.
labels: Option<Vec<String>>§inherited_labels: Option<Vec<String>>§is_draft: Option<bool>True when the authed user has a draft for this script — either no deployed row exists at this path (draft-only) or the user saved a per-user draft on top of the deployed row. Omitted when false.
draft_path: Option<String>User-typed path the editor has staged but not yet deployed. Surfaced for draft-only rows so the home list can render the meaningful name instead of the autogenerated u/{user}/draft_{uuid} URL path. Omitted when unchanged.
draft_users: Option<Vec<ListDrafts200ResponseInnerDraftUsersInner>>Workspace users (including the authed user, and the legacy NULL-email row if any) who have a per-user draft at this path. Drives the home page’s user-avatar circles inside the Draft badge. Omitted when no drafts exist.
Implementations§
Source§impl ListableScript
impl ListableScript
Sourcepub fn new(
hash: String,
path: String,
summary: String,
created_at: String,
archived: bool,
extra_perms: HashMap<String, bool>,
language: ScriptLang,
kind: Kind,
starred: bool,
tag: Option<String>,
has_deploy_errors: bool,
ws_error_handler_muted: Option<bool>,
) -> ListableScript
pub fn new( hash: String, path: String, summary: String, created_at: String, archived: bool, extra_perms: HashMap<String, bool>, language: ScriptLang, kind: Kind, starred: bool, tag: Option<String>, has_deploy_errors: bool, ws_error_handler_muted: Option<bool>, ) -> ListableScript
A script as returned by the list endpoint: the deployed row’s summary fields, without its content, lock or schema.