pub struct ProjectSketch {
pub domain: &'static str,
pub headline: &'static str,
pub user_description: String,
pub models: Vec<ModelSketch>,
}Expand description
A starting shape proposed to the user. Carries the original
description verbatim so the wizard can echo it back and the
downstream PlanDocument can record what was asked for.
Fields§
§domain: &'static strShort domain slug used in CLI output (clinic, blog, …).
headline: &'static strOne-line summary of what this template is for.
user_description: StringThe user’s original description, verbatim.
models: Vec<ModelSketch>2–4 models in the order they should be introduced. Earlier
models are referenced by later ones via belongs_to, so order
matters.
Trait Implementations§
Source§impl Clone for ProjectSketch
impl Clone for ProjectSketch
Source§fn clone(&self) -> ProjectSketch
fn clone(&self) -> ProjectSketch
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 ProjectSketch
impl Debug for ProjectSketch
Source§impl Deserialize<'static> for ProjectSketch
impl Deserialize<'static> for ProjectSketch
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ProjectSketch
impl PartialEq for ProjectSketch
Source§fn eq(&self, other: &ProjectSketch) -> bool
fn eq(&self, other: &ProjectSketch) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProjectSketch
impl Serialize for ProjectSketch
impl StructuralPartialEq for ProjectSketch
Auto Trait Implementations§
impl Freeze for ProjectSketch
impl RefUnwindSafe for ProjectSketch
impl Send for ProjectSketch
impl Sync for ProjectSketch
impl Unpin for ProjectSketch
impl UnsafeUnpin for ProjectSketch
impl UnwindSafe for ProjectSketch
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more