pub enum ManifestError {
Toml(Error),
SchemaMismatch {
got: String,
},
DuplicateNodeId(String),
NodeMissingSource(String),
InvalidUrl {
node: String,
reason: String,
},
InvalidArg {
node: String,
reason: String,
},
}Expand description
Errors that can occur while parsing or validating a manifest.
Variants§
Toml(Error)
Underlying TOML deserialization failed (syntax error, type mismatch, unknown variant).
SchemaMismatch
orchestrator.schema_version does not satisfy the ~0.1 requirement.
DuplicateNodeId(String)
Two or more [[node]] entries share the same id.
NodeMissingSource(String)
A [[node]] declares neither a git URL nor a local path.
InvalidUrl
A user-supplied URL would be interpreted as a CLI flag by the
downstream git / cargo invocation (CWE-88, argument injection).
Fields
InvalidArg
A user-supplied identifier (crate name, feature name) would be interpreted as a CLI flag or break shell argument parsing.
Trait Implementations§
Source§impl Debug for ManifestError
impl Debug for ManifestError
Source§impl Display for ManifestError
impl Display for ManifestError
Source§impl Error for ManifestError
impl Error for ManifestError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ManifestError
impl RefUnwindSafe for ManifestError
impl Send for ManifestError
impl Sync for ManifestError
impl Unpin for ManifestError
impl UnsafeUnpin for ManifestError
impl UnwindSafe for ManifestError
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