pub enum ManifestError {
Show 26 variants
NomeEmpty,
NomeInvalid {
nome: String,
reason: String,
},
NomeChartNameBudgetExceeded {
nome: String,
reason: String,
},
VersaoEmpty,
VersaoInvalid {
versao: String,
reason: String,
},
RestartWindowMalformed {
restart_window: String,
reason: String,
},
CodePathEmpty {
slot: &'static str,
},
CodePathAbsolute {
slot: &'static str,
path: PathBuf,
},
CodePathParentEscape {
slot: &'static str,
path: PathBuf,
},
CodePathNonLispExtension {
slot: &'static str,
path: PathBuf,
},
CodePathNonComputeUnitYamlExtension {
slot: &'static str,
path: PathBuf,
},
CodePathDuplicate {
slot: &'static str,
path: PathBuf,
},
EtiquetaEmpty,
EtiquetaDuplicate {
etiqueta: String,
},
EtiquetaInvalid {
etiqueta: String,
reason: String,
},
AutorEmpty,
AutorDuplicate {
autor: String,
},
AutorInvalid {
autor: String,
reason: String,
},
RepositorioEmpty,
RepositorioInvalid {
repositorio: String,
reason: String,
},
DescricaoEmpty,
DescricaoInvalid {
descricao: String,
reason: String,
},
LicencaEmpty,
LicencaInvalid {
licenca: String,
reason: String,
},
EdicaoEmpty,
EdicaoInvalid {
edicao: String,
reason: String,
},
}Expand description
Errors raised by top-level Caixa validators that don’t fit
the per-axis DepError / crate::AplicacaoError /
crate::SupervisorError / crate::LayoutError families —
the Caixa’s own identity axes (:nome, :versao) that flow
through every substrate-side artifact’s metadata.name /
version derivation.
A future top-level sum (the M4 CaixaError the DepError
doc-comment anticipates) can hold one of each per-axis error
family without reshaping individual diagnostics; this enum is
the first such per-Caixa-identity family.
Variants§
NomeEmpty
NomeInvalid
NomeChartNameBudgetExceeded
VersaoEmpty
VersaoInvalid
RestartWindowMalformed
CodePathEmpty
CodePathAbsolute
CodePathParentEscape
CodePathNonLispExtension
CodePathNonComputeUnitYamlExtension
CodePathDuplicate
EtiquetaEmpty
EtiquetaDuplicate
EtiquetaInvalid
AutorEmpty
AutorDuplicate
AutorInvalid
RepositorioEmpty
RepositorioInvalid
DescricaoEmpty
DescricaoInvalid
LicencaEmpty
LicencaInvalid
EdicaoEmpty
EdicaoInvalid
Implementations§
Source§impl ManifestError
impl ManifestError
Sourcepub fn code_path_absolute(slot: &'static str, path: &Path) -> Self
pub fn code_path_absolute(slot: &'static str, path: &Path) -> Self
Construct a ManifestError::CodePathAbsolute naming the offending :bibliotecas / :exe / :servicos code-path list slot label and the offending entry path. Folds the uniform Self::CodePathAbsolute { slot, path: path.to_path_buf() } two-field struct-literal onto one substrate primitive so every wire-up on this variant at [Caixa::validate_code_path_lists] reads through one dispatch rather than the pre-lift four-line open-coded block. The slot label threads verbatim from the outer per-slot iterator (one of the three code-path author-key &'static str consts) and the path from the per-entry inner iterator’s Path::new(entry) binding.
Sourcepub fn code_path_parent_escape(slot: &'static str, path: &Path) -> Self
pub fn code_path_parent_escape(slot: &'static str, path: &Path) -> Self
Construct a ManifestError::CodePathParentEscape naming the offending :bibliotecas / :exe / :servicos code-path list slot label and the offending entry path. Folds the uniform Self::CodePathParentEscape { slot, path: path.to_path_buf() } two-field struct-literal onto one substrate primitive so every wire-up on this variant at [Caixa::validate_code_path_lists] reads through one dispatch rather than the pre-lift four-line open-coded block. The slot label threads verbatim from the outer per-slot iterator (one of the three code-path author-key &'static str consts) and the path from the per-entry inner iterator’s Path::new(entry) binding.
Sourcepub fn code_path_non_lisp_extension(slot: &'static str, path: &Path) -> Self
pub fn code_path_non_lisp_extension(slot: &'static str, path: &Path) -> Self
Construct a ManifestError::CodePathNonLispExtension naming the offending :bibliotecas / :exe / :servicos code-path list slot label and the offending entry path. Folds the uniform Self::CodePathNonLispExtension { slot, path: path.to_path_buf() } two-field struct-literal onto one substrate primitive so every wire-up on this variant at [Caixa::validate_code_path_lists] reads through one dispatch rather than the pre-lift four-line open-coded block. The slot label threads verbatim from the outer per-slot iterator (one of the three code-path author-key &'static str consts) and the path from the per-entry inner iterator’s Path::new(entry) binding.
Sourcepub fn code_path_non_computeunit_yaml_extension(
slot: &'static str,
path: &Path,
) -> Self
pub fn code_path_non_computeunit_yaml_extension( slot: &'static str, path: &Path, ) -> Self
Construct a ManifestError::CodePathNonComputeUnitYamlExtension naming the offending :bibliotecas / :exe / :servicos code-path list slot label and the offending entry path. Folds the uniform Self::CodePathNonComputeUnitYamlExtension { slot, path: path.to_path_buf() } two-field struct-literal onto one substrate primitive so every wire-up on this variant at [Caixa::validate_code_path_lists] reads through one dispatch rather than the pre-lift four-line open-coded block. The slot label threads verbatim from the outer per-slot iterator (one of the three code-path author-key &'static str consts) and the path from the per-entry inner iterator’s Path::new(entry) binding.
Sourcepub fn code_path_duplicate(slot: &'static str, path: &Path) -> Self
pub fn code_path_duplicate(slot: &'static str, path: &Path) -> Self
Construct a ManifestError::CodePathDuplicate naming the offending :bibliotecas / :exe / :servicos code-path list slot label and the offending entry path. Folds the uniform Self::CodePathDuplicate { slot, path: path.to_path_buf() } two-field struct-literal onto one substrate primitive so every wire-up on this variant at [Caixa::validate_code_path_lists] reads through one dispatch rather than the pre-lift four-line open-coded block. The slot label threads verbatim from the outer per-slot iterator (one of the three code-path author-key &'static str consts) and the path from the per-entry inner iterator’s Path::new(entry) binding.
Source§impl ManifestError
impl ManifestError
Sourcepub const fn code_path_empty(slot: &'static str) -> Self
pub const fn code_path_empty(slot: &'static str) -> Self
Construct a ManifestError::CodePathEmpty naming the offending
:bibliotecas / :exe / :servicos code-path list slot label.
Folds the uniform Self::CodePathEmpty { slot } one-field
struct-literal onto one substrate primitive so the wire-up at
[Caixa::validate_code_path_lists]’s per-slot
PathShapeViolation::Empty arm on this variant reads through one
dispatch rather than the pre-lift open-coded struct-literal block.
Peer of the sibling ManifestError::code_path_absolute /
ManifestError::code_path_parent_escape /
ManifestError::code_path_non_lisp_extension /
ManifestError::code_path_non_computeunit_yaml_extension /
ManifestError::code_path_duplicate ctors the
[manifest_code_path_slot_path_ctors!] macro closed on the paired
two-slot { slot: &'static str, path: PathBuf } envelope of the same
ManifestError, and mirror-symmetric sibling of the peer
crate::behavior::BehaviorError::empty_path ctor on the sibling M2
:behavior envelope’s identical one-slot shape — the per-slot
PathShapeViolation cascade at [Caixa::validate_code_path_lists]
now routes every arm through one substrate-primitive ctor per typed
variant.
Source§impl ManifestError
impl ManifestError
Sourcepub fn nome_invalid(nome: &str, reason: impl Into<String>) -> Self
pub fn nome_invalid(nome: &str, reason: impl Into<String>) -> Self
Construct a ManifestError::NomeInvalid naming the offending nome under the given reason. Folds the uniform Self::NomeInvalid { nome: nome.to_string(), reason: reason.into() } two-slot construction onto one substrate primitive so every wire-up on this variant reads through one dispatch rather than the pre-lift four-line struct-literal block. reason accepts owned String, &str literals, and format!(…) outputs through the impl Into<String> bound; the nome: &str parameter accepts both &str and &String via Deref coercion.
Sourcepub fn nome_chart_name_budget_exceeded(
nome: &str,
reason: impl Into<String>,
) -> Self
pub fn nome_chart_name_budget_exceeded( nome: &str, reason: impl Into<String>, ) -> Self
Construct a ManifestError::NomeChartNameBudgetExceeded naming the offending nome under the given reason. Folds the uniform Self::NomeChartNameBudgetExceeded { nome: nome.to_string(), reason: reason.into() } two-slot construction onto one substrate primitive so every wire-up on this variant reads through one dispatch rather than the pre-lift four-line struct-literal block. reason accepts owned String, &str literals, and format!(…) outputs through the impl Into<String> bound; the nome: &str parameter accepts both &str and &String via Deref coercion.
Sourcepub fn versao_invalid(versao: &str, reason: impl Into<String>) -> Self
pub fn versao_invalid(versao: &str, reason: impl Into<String>) -> Self
Construct a ManifestError::VersaoInvalid naming the offending versao under the given reason. Folds the uniform Self::VersaoInvalid { versao: versao.to_string(), reason: reason.into() } two-slot construction onto one substrate primitive so every wire-up on this variant reads through one dispatch rather than the pre-lift four-line struct-literal block. reason accepts owned String, &str literals, and format!(…) outputs through the impl Into<String> bound; the versao: &str parameter accepts both &str and &String via Deref coercion.
Sourcepub fn etiqueta_invalid(etiqueta: &str, reason: impl Into<String>) -> Self
pub fn etiqueta_invalid(etiqueta: &str, reason: impl Into<String>) -> Self
Construct a ManifestError::EtiquetaInvalid naming the offending etiqueta under the given reason. Folds the uniform Self::EtiquetaInvalid { etiqueta: etiqueta.to_string(), reason: reason.into() } two-slot construction onto one substrate primitive so every wire-up on this variant reads through one dispatch rather than the pre-lift four-line struct-literal block. reason accepts owned String, &str literals, and format!(…) outputs through the impl Into<String> bound; the etiqueta: &str parameter accepts both &str and &String via Deref coercion.
Sourcepub fn autor_invalid(autor: &str, reason: impl Into<String>) -> Self
pub fn autor_invalid(autor: &str, reason: impl Into<String>) -> Self
Construct a ManifestError::AutorInvalid naming the offending autor under the given reason. Folds the uniform Self::AutorInvalid { autor: autor.to_string(), reason: reason.into() } two-slot construction onto one substrate primitive so every wire-up on this variant reads through one dispatch rather than the pre-lift four-line struct-literal block. reason accepts owned String, &str literals, and format!(…) outputs through the impl Into<String> bound; the autor: &str parameter accepts both &str and &String via Deref coercion.
Sourcepub fn repositorio_invalid(repositorio: &str, reason: impl Into<String>) -> Self
pub fn repositorio_invalid(repositorio: &str, reason: impl Into<String>) -> Self
Construct a ManifestError::RepositorioInvalid naming the offending repositorio under the given reason. Folds the uniform Self::RepositorioInvalid { repositorio: repositorio.to_string(), reason: reason.into() } two-slot construction onto one substrate primitive so every wire-up on this variant reads through one dispatch rather than the pre-lift four-line struct-literal block. reason accepts owned String, &str literals, and format!(…) outputs through the impl Into<String> bound; the repositorio: &str parameter accepts both &str and &String via Deref coercion.
Sourcepub fn descricao_invalid(descricao: &str, reason: impl Into<String>) -> Self
pub fn descricao_invalid(descricao: &str, reason: impl Into<String>) -> Self
Construct a ManifestError::DescricaoInvalid naming the offending descricao under the given reason. Folds the uniform Self::DescricaoInvalid { descricao: descricao.to_string(), reason: reason.into() } two-slot construction onto one substrate primitive so every wire-up on this variant reads through one dispatch rather than the pre-lift four-line struct-literal block. reason accepts owned String, &str literals, and format!(…) outputs through the impl Into<String> bound; the descricao: &str parameter accepts both &str and &String via Deref coercion.
Sourcepub fn licenca_invalid(licenca: &str, reason: impl Into<String>) -> Self
pub fn licenca_invalid(licenca: &str, reason: impl Into<String>) -> Self
Construct a ManifestError::LicencaInvalid naming the offending licenca under the given reason. Folds the uniform Self::LicencaInvalid { licenca: licenca.to_string(), reason: reason.into() } two-slot construction onto one substrate primitive so every wire-up on this variant reads through one dispatch rather than the pre-lift four-line struct-literal block. reason accepts owned String, &str literals, and format!(…) outputs through the impl Into<String> bound; the licenca: &str parameter accepts both &str and &String via Deref coercion.
Sourcepub fn edicao_invalid(edicao: &str, reason: impl Into<String>) -> Self
pub fn edicao_invalid(edicao: &str, reason: impl Into<String>) -> Self
Construct a ManifestError::EdicaoInvalid naming the offending edicao under the given reason. Folds the uniform Self::EdicaoInvalid { edicao: edicao.to_string(), reason: reason.into() } two-slot construction onto one substrate primitive so every wire-up on this variant reads through one dispatch rather than the pre-lift four-line struct-literal block. reason accepts owned String, &str literals, and format!(…) outputs through the impl Into<String> bound; the edicao: &str parameter accepts both &str and &String via Deref coercion.
Sourcepub fn restart_window_malformed(
restart_window: &str,
reason: impl Into<String>,
) -> Self
pub fn restart_window_malformed( restart_window: &str, reason: impl Into<String>, ) -> Self
Construct a ManifestError::RestartWindowMalformed naming the offending restart_window under the given reason. Folds the uniform Self::RestartWindowMalformed { restart_window: restart_window.to_string(), reason: reason.into() } two-slot construction onto one substrate primitive so every wire-up on this variant reads through one dispatch rather than the pre-lift four-line struct-literal block. reason accepts owned String, &str literals, and format!(…) outputs through the impl Into<String> bound; the restart_window: &str parameter accepts both &str and &String via Deref coercion.
Source§impl ManifestError
impl ManifestError
Sourcepub fn etiqueta_duplicate(etiqueta: &str) -> Self
pub fn etiqueta_duplicate(etiqueta: &str) -> Self
Construct a ManifestError::EtiquetaDuplicate naming the offending etiqueta entry. Folds the uniform Self::EtiquetaDuplicate { etiqueta: etiqueta.to_string() } one-field struct-literal onto one substrate primitive so every wire-up on this variant reads through one dispatch rather than the pre-lift three-line open-coded struct-literal block. The etiqueta: &str parameter accepts both &str and &String via Deref coercion.
Sourcepub fn autor_duplicate(autor: &str) -> Self
pub fn autor_duplicate(autor: &str) -> Self
Construct a ManifestError::AutorDuplicate naming the offending autor entry. Folds the uniform Self::AutorDuplicate { autor: autor.to_string() } one-field struct-literal onto one substrate primitive so every wire-up on this variant reads through one dispatch rather than the pre-lift three-line open-coded struct-literal block. The autor: &str parameter accepts both &str and &String via Deref coercion.
Trait Implementations§
Source§impl Debug for ManifestError
impl Debug for ManifestError
Source§impl Display for ManifestError
impl Display for ManifestError
impl Eq for ManifestError
Source§impl Error for ManifestError
impl Error for ManifestError
1.30.0 · 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 PartialEq for ManifestError
impl PartialEq for ManifestError
impl StructuralPartialEq for ManifestError
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.