Skip to main content

ManifestError

Enum ManifestError 

Source
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

Fields

§nome: String
§reason: String
§

NomeChartNameBudgetExceeded

Fields

§nome: String
§reason: String
§

VersaoEmpty

§

VersaoInvalid

Fields

§versao: String
§reason: String
§

RestartWindowMalformed

Fields

§restart_window: String
§reason: String
§

CodePathEmpty

Fields

§slot: &'static str
§

CodePathAbsolute

Fields

§slot: &'static str
§path: PathBuf
§

CodePathParentEscape

Fields

§slot: &'static str
§path: PathBuf
§

CodePathNonLispExtension

Fields

§slot: &'static str
§path: PathBuf
§

CodePathNonComputeUnitYamlExtension

Fields

§slot: &'static str
§path: PathBuf
§

CodePathDuplicate

Fields

§slot: &'static str
§path: PathBuf
§

EtiquetaEmpty

§

EtiquetaDuplicate

Fields

§etiqueta: String
§

EtiquetaInvalid

Fields

§etiqueta: String
§reason: String
§

AutorEmpty

§

AutorDuplicate

Fields

§autor: String
§

AutorInvalid

Fields

§autor: String
§reason: String
§

RepositorioEmpty

§

RepositorioInvalid

Fields

§repositorio: String
§reason: String
§

DescricaoEmpty

§

DescricaoInvalid

Fields

§descricao: String
§reason: String
§

LicencaEmpty

§

LicencaInvalid

Fields

§licenca: String
§reason: String
§

EdicaoEmpty

§

EdicaoInvalid

Fields

§edicao: String
§reason: String

Implementations§

Source§

impl ManifestError

Source

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.

Source

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.

Source

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.

Source

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.

Source

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

Source

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

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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

Source

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.

Source

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

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for ManifestError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for ManifestError

Source§

impl Error for ManifestError

1.30.0 · Source§

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

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl PartialEq for ManifestError

Source§

fn eq(&self, other: &ManifestError) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ManifestError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.