pub enum ScaffoldError {
TemplateNotFound(String),
OutputPathExists(String),
OutputDirectoryMissing(String),
MissingRepositoryConfig(String),
InvalidRepositoryKey(String),
RepositoryKeyConflict(String),
MalformedRepositoryConfig(String),
IdGenerationExhausted(String),
CorpusNotEmpty(String),
InvalidOrgEndpoint(String),
MalformedClientConfig(String),
}Expand description
The scaffold failure contract, message-shaped like the oracle’s
exception str(). Exit-code routing lives with each command handler,
because the SAME error class maps to different exits per command
(OutputPathExists is usage exit 2 under new but a refusal exit 1
under quickstart — measured).
Variants§
TemplateNotFound(String)
TemplateNotFound — unsupported artifact type (usage).
OutputPathExists(String)
OutputPathExists — never overwrite (new: exit 2; quickstart: 1).
OutputDirectoryMissing(String)
OutputDirectoryMissing — no auto-create (usage).
MissingRepositoryConfig(String)
MissingRepositoryConfig — run decided init first (usage).
InvalidRepositoryKey(String)
InvalidRepositoryKey — bad key syntax (usage).
RepositoryKeyConflict(String)
RepositoryKeyConflict — established key differs (exit 1).
MalformedRepositoryConfig(String)
MalformedRepositoryConfig — unreadable config (exit 1).
IdGenerationExhausted(String)
IdGenerationExhausted — broken entropy source (exit 1).
CorpusNotEmpty(String)
CorpusNotEmpty — quickstart refuses a non-empty corpus (exit 1).
InvalidOrgEndpoint(String)
InvalidOrgEndpoint — non-http(s) org endpoint URL (usage).
MalformedClientConfig(String)
MalformedClientConfig — unmergeable MCP client config (exit 1).
Implementations§
Auto Trait Implementations§
impl Freeze for ScaffoldError
impl RefUnwindSafe for ScaffoldError
impl Send for ScaffoldError
impl Sync for ScaffoldError
impl Unpin for ScaffoldError
impl UnsafeUnpin for ScaffoldError
impl UnwindSafe for ScaffoldError
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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>
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>
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