pub struct NewOptions {
pub enabled: bool,
pub title: Option<String>,
pub description: Option<String>,
pub parent: Option<String>,
pub inheritable: Option<bool>,
}Expand description
project new flags — only provided fields ride the create body
(absent = NOT SENT, Pitfall 5); enabled is the CLI --disabled
flag inverted at the dispatch seam.
Fields§
§enabled: boolWhether the project starts enabled.
title: Option<String>Display title.
description: Option<String>Long description.
parent: Option<String>Parent project (inheritance).
inheritable: Option<bool>Whether this project may serve as a parent.
Trait Implementations§
Source§impl Clone for NewOptions
impl Clone for NewOptions
Source§fn clone(&self) -> NewOptions
fn clone(&self) -> NewOptions
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 NewOptions
impl Debug for NewOptions
Source§impl Default for NewOptions
impl Default for NewOptions
Source§fn default() -> NewOptions
fn default() -> NewOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NewOptions
impl RefUnwindSafe for NewOptions
impl Send for NewOptions
impl Sync for NewOptions
impl Unpin for NewOptions
impl UnsafeUnpin for NewOptions
impl UnwindSafe for NewOptions
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