pub struct ProjectsCreate {
pub analytics: Option<bool>,
pub description: Option<String>,
pub framework: Option<String>,
pub license: Option<String>,
pub name: Option<String>,
pub repo: Option<Box<ProjectsCreateRepo>>,
pub slug: Option<String>,
pub upstream: Option<String>,
pub visibility: Option<String>,
}Fields§
§analytics: Option<bool>Analytics is the opt-OUT for the wired-by-default analytics beacon: absent (nil) ⇒ ON (the default); explicit false ⇒ off. A pointer so "unset" is distinguishable from "false" — the only way to turn the default off.
description: Option<String>Description is the one-line summary, copied onto anything forked from this project.
framework: Option<String>Framework is a BUILD HINT from a closed set, defaulting to static. It tells CI how to build a linked repo and never gates a deploy.
license: Option<String>License is the terms that upstream work carries.
name: Option<String>Name is the project’s display name and the only REQUIRED field. When slug is omitted it is also what the slug is derived from.
repo: Option<Box<ProjectsCreateRepo>>§slug: Option<String>Slug is the handle everything else addresses this project by: the public host <slug>.hanzo.app, the object-store key segment, and the path parameter of every later call. Derived from the name when omitted. It is a hostname label, so it is constrained and reserved labels such as api or admin are refused.
upstream: Option<String>Upstream credits the third-party work this project was published from. It is accepted from any caller: giving away credit can only cost the publisher, so it needs no gate.
visibility: Option<String>Visibility is "public" (the default when absent) or "private". Publishing publicly is ungated — that is the point of a community. Going PRIVATE is the paid feature, so an unfunded org asking for it is refused rather than silently downgraded (see resolve).
Implementations§
Source§impl ProjectsCreate
impl ProjectsCreate
pub fn new() -> ProjectsCreate
Trait Implementations§
Source§impl Clone for ProjectsCreate
impl Clone for ProjectsCreate
Source§fn clone(&self) -> ProjectsCreate
fn clone(&self) -> ProjectsCreate
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more