pub struct ProjectsFork {
pub name: Option<String>,
pub slug: Option<String>,
pub target: Option<String>,
pub variant: Option<String>,
}Fields§
§name: Option<String>target project name (optional; defaults to the parent’s title)
slug: Option<String>parent slug to fork — catalog template or published project (required)
target: Option<String>Target overrides the derived project slug (optional; defaults to the parent slug). Kept distinct from Slug so callers can rename on fork.
variant: Option<String>Variant picks a template’s format/page/theme (optional; defaults to the template’s first shape). This is the axis the catalog used to spend sibling slugs on, so it is expressed here, where the user’s preference is.
Implementations§
Source§impl ProjectsFork
impl ProjectsFork
pub fn new() -> ProjectsFork
Trait Implementations§
Source§impl Clone for ProjectsFork
impl Clone for ProjectsFork
Source§fn clone(&self) -> ProjectsFork
fn clone(&self) -> ProjectsFork
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 ProjectsFork
impl Debug for ProjectsFork
Source§impl Default for ProjectsFork
impl Default for ProjectsFork
Source§fn default() -> ProjectsFork
fn default() -> ProjectsFork
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProjectsFork
impl<'de> Deserialize<'de> for ProjectsFork
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 ProjectsFork
impl PartialEq for ProjectsFork
Source§impl Serialize for ProjectsFork
impl Serialize for ProjectsFork
impl StructuralPartialEq for ProjectsFork
Auto Trait Implementations§
impl Freeze for ProjectsFork
impl RefUnwindSafe for ProjectsFork
impl Send for ProjectsFork
impl Sync for ProjectsFork
impl Unpin for ProjectsFork
impl UnsafeUnpin for ProjectsFork
impl UnwindSafe for ProjectsFork
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