pub enum AssembleError {
WorkspaceConfig(WorkspaceConfigError),
Config(PublishConversionError),
Schema(SchemaSourceError),
Io(String),
Zip(ZipError),
Serialise(Error),
}Expand description
Errors surfaced by assemble_archive.
Variants§
WorkspaceConfig(WorkspaceConfigError)
The workspace config could not be read or parsed (missing file, malformed JSON, format mismatch).
Config(PublishConversionError)
The workspace config does not project cleanly to the archive
shape — typically because version is unset on the workspace
config.
Schema(SchemaSourceError)
Resolving the schema’s source files failed — either the
name@version pin does not match any builtin (and there’s no
workspace-local schema dir) or the on-disk schema directory is
malformed.
Io(String)
I/O while reading entity .md files from the workspace.
Zip(ZipError)
Zip-level error while writing into the in-memory buffer. Should not happen in practice — the buffer is unbounded — but surfaces cleanly if a future zip version starts failing earlier.
Serialise(Error)
Serialising the archive’s .memstead/config.json.
Trait Implementations§
Source§impl Debug for AssembleError
impl Debug for AssembleError
Source§impl Display for AssembleError
impl Display for AssembleError
Source§impl Error for AssembleError
impl Error for AssembleError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<Error> for AssembleError
impl From<Error> for AssembleError
Source§impl From<PublishConversionError> for AssembleError
impl From<PublishConversionError> for AssembleError
Source§fn from(source: PublishConversionError) -> Self
fn from(source: PublishConversionError) -> Self
Source§impl From<SchemaSourceError> for AssembleError
impl From<SchemaSourceError> for AssembleError
Source§fn from(source: SchemaSourceError) -> Self
fn from(source: SchemaSourceError) -> Self
Source§impl From<WorkspaceConfigError> for AssembleError
impl From<WorkspaceConfigError> for AssembleError
Source§fn from(source: WorkspaceConfigError) -> Self
fn from(source: WorkspaceConfigError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for AssembleError
impl !UnwindSafe for AssembleError
impl Freeze for AssembleError
impl Send for AssembleError
impl Sync for AssembleError
impl Unpin for AssembleError
impl UnsafeUnpin for AssembleError
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>, which can then be
downcast into Box<dyn 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>, which 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> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> Fruit for T
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> ⓘ
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