Skip to main content

DepError

Enum DepError 

Source
pub enum DepError {
Show 39 variants NomeEmpty, NomeInvalid { nome: String, reason: String, }, VersaoEmpty { nome: String, }, VersaoInvalid { nome: String, versao: String, reason: String, }, FonteRepoEmpty { nome: String, }, FonteRepoShape { nome: String, repo: String, reason: String, }, FontePinMissing { nome: String, }, FontePinAmbiguous { nome: String, pins: String, }, FontePinEmpty { nome: String, pin: String, }, FontePinShape { nome: String, pin: String, value: String, reason: String, }, FonteCaminhoEmpty { nome: String, }, FonteCaminhoAbsolute { nome: String, caminho: String, }, FonteCaminhoTildeExpansion { nome: String, caminho: String, }, FonteCaminhoVarExpansion { nome: String, caminho: String, }, FonteCaminhoLeadingWhitespace { nome: String, caminho: String, }, FonteCaminhoLeadingHyphen { nome: String, caminho: String, }, FonteCaminhoControlChar { nome: String, caminho: String, byte: u8, }, FonteCaminhoBackslash { nome: String, caminho: String, }, FonteCaminhoShellRedirection { nome: String, caminho: String, byte: u8, }, FonteCaminhoShellPipe { nome: String, caminho: String, }, FonteCaminhoShellSemicolon { nome: String, caminho: String, }, FonteCaminhoShellBackground { nome: String, caminho: String, }, FonteCaminhoShellCommandSubstitution { nome: String, caminho: String, }, FonteCaminhoShellGlob { nome: String, caminho: String, byte: u8, }, FonteCaminhoShellSubshellGrouping { nome: String, caminho: String, byte: u8, }, FonteCaminhoShellBraceExpansion { nome: String, caminho: String, byte: u8, }, FonteCaminhoShellBracketExpansion { nome: String, caminho: String, byte: u8, }, FonteCaminhoShellQuoteGrouping { nome: String, caminho: String, byte: u8, }, FonteCaminhoShellComment { nome: String, caminho: String, byte: u8, }, FonteCaminhoUrlPercentEncoding { nome: String, caminho: String, byte: u8, }, FonteCaminhoShellVariableExpansion { nome: String, caminho: String, byte: u8, }, FonteCaminhoShellHistoryExpansion { nome: String, caminho: String, byte: u8, }, FonteCaminhoShellHistorySubstitution { nome: String, caminho: String, byte: u8, }, FonteCaminhoTrailingSlash { nome: String, caminho: String, }, DuplicateNome { nome: String, list: &'static str, }, CaracteristicaEmpty { nome: String, }, CaracteristicaInvalid { nome: String, caracteristica: String, reason: String, }, CaracteristicaDuplicate { nome: String, caracteristica: String, }, DepIsSelf { nome: String, list: &'static str, },
}
Expand description

Errors raised by Dep::validate.

Mirrors the per-axis error families the other :versao-carrying typed surfaces expose (crate::AplicacaoError::MembroVersaoEmpty / crate::AplicacaoError::MembroVersaoInvalid, crate::SupervisorError::EmptyChildVersion / crate::SupervisorError::ChildVersaoInvalid) so a future top- level CaixaError (M4) sums these without reshaping the diagnostic.

Variants§

§

NomeEmpty

§

NomeInvalid

Fields

§nome: String
§reason: String
§

VersaoEmpty

Fields

§nome: String
§

VersaoInvalid

Fields

§nome: String
§versao: String
§reason: String
§

FonteRepoEmpty

Fields

§nome: String
§

FonteRepoShape

Fields

§nome: String
§repo: String
§reason: String
§

FontePinMissing

Fields

§nome: String
§

FontePinAmbiguous

Fields

§nome: String
§pins: String
§

FontePinEmpty

Fields

§nome: String
§

FontePinShape

Fields

§nome: String
§value: String
§reason: String
§

FonteCaminhoEmpty

Fields

§nome: String
§

FonteCaminhoAbsolute

Fields

§nome: String
§caminho: String
§

FonteCaminhoTildeExpansion

Fields

§nome: String
§caminho: String
§

FonteCaminhoVarExpansion

Fields

§nome: String
§caminho: String
§

FonteCaminhoLeadingWhitespace

Fields

§nome: String
§caminho: String
§

FonteCaminhoLeadingHyphen

Fields

§nome: String
§caminho: String
§

FonteCaminhoControlChar

Fields

§nome: String
§caminho: String
§byte: u8
§

FonteCaminhoBackslash

Fields

§nome: String
§caminho: String
§

FonteCaminhoShellRedirection

Fields

§nome: String
§caminho: String
§byte: u8
§

FonteCaminhoShellPipe

Fields

§nome: String
§caminho: String
§

FonteCaminhoShellSemicolon

Fields

§nome: String
§caminho: String
§

FonteCaminhoShellBackground

Fields

§nome: String
§caminho: String
§

FonteCaminhoShellCommandSubstitution

Fields

§nome: String
§caminho: String
§

FonteCaminhoShellGlob

Fields

§nome: String
§caminho: String
§byte: u8
§

FonteCaminhoShellSubshellGrouping

Fields

§nome: String
§caminho: String
§byte: u8
§

FonteCaminhoShellBraceExpansion

Fields

§nome: String
§caminho: String
§byte: u8
§

FonteCaminhoShellBracketExpansion

Fields

§nome: String
§caminho: String
§byte: u8
§

FonteCaminhoShellQuoteGrouping

Fields

§nome: String
§caminho: String
§byte: u8
§

FonteCaminhoShellComment

Fields

§nome: String
§caminho: String
§byte: u8
§

FonteCaminhoUrlPercentEncoding

Fields

§nome: String
§caminho: String
§byte: u8
§

FonteCaminhoShellVariableExpansion

Fields

§nome: String
§caminho: String
§byte: u8
§

FonteCaminhoShellHistoryExpansion

Fields

§nome: String
§caminho: String
§byte: u8
§

FonteCaminhoShellHistorySubstitution

Fields

§nome: String
§caminho: String
§byte: u8
§

FonteCaminhoTrailingSlash

Fields

§nome: String
§caminho: String
§

DuplicateNome

Fields

§nome: String
§list: &'static str
§

CaracteristicaEmpty

Fields

§nome: String
§

CaracteristicaInvalid

Fields

§nome: String
§caracteristica: String
§reason: String
§

CaracteristicaDuplicate

Fields

§nome: String
§caracteristica: String
§

DepIsSelf

Fields

§nome: String
§list: &'static str

Implementations§

Source§

impl DepError

Source

pub fn fonte_caminho_absolute(nome: &str, caminho: &str) -> Self

Construct a DepError::FonteCaminhoAbsolute naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair. Folds the uniform Self::FonteCaminhoAbsolute { nome: nome.to_string(), caminho: caminho.to_string() } two-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift four-line open-coded block.

Source

pub fn fonte_caminho_tilde_expansion(nome: &str, caminho: &str) -> Self

Construct a DepError::FonteCaminhoTildeExpansion naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair. Folds the uniform Self::FonteCaminhoTildeExpansion { nome: nome.to_string(), caminho: caminho.to_string() } two-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift four-line open-coded block.

Source

pub fn fonte_caminho_var_expansion(nome: &str, caminho: &str) -> Self

Construct a DepError::FonteCaminhoVarExpansion naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair. Folds the uniform Self::FonteCaminhoVarExpansion { nome: nome.to_string(), caminho: caminho.to_string() } two-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift four-line open-coded block.

Source

pub fn fonte_caminho_leading_whitespace(nome: &str, caminho: &str) -> Self

Construct a DepError::FonteCaminhoLeadingWhitespace naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair. Folds the uniform Self::FonteCaminhoLeadingWhitespace { nome: nome.to_string(), caminho: caminho.to_string() } two-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift four-line open-coded block.

Source

pub fn fonte_caminho_leading_hyphen(nome: &str, caminho: &str) -> Self

Construct a DepError::FonteCaminhoLeadingHyphen naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair. Folds the uniform Self::FonteCaminhoLeadingHyphen { nome: nome.to_string(), caminho: caminho.to_string() } two-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift four-line open-coded block.

Source

pub fn fonte_caminho_backslash(nome: &str, caminho: &str) -> Self

Construct a DepError::FonteCaminhoBackslash naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair. Folds the uniform Self::FonteCaminhoBackslash { nome: nome.to_string(), caminho: caminho.to_string() } two-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift four-line open-coded block.

Source

pub fn fonte_caminho_shell_pipe(nome: &str, caminho: &str) -> Self

Construct a DepError::FonteCaminhoShellPipe naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair. Folds the uniform Self::FonteCaminhoShellPipe { nome: nome.to_string(), caminho: caminho.to_string() } two-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift four-line open-coded block.

Source

pub fn fonte_caminho_shell_semicolon(nome: &str, caminho: &str) -> Self

Construct a DepError::FonteCaminhoShellSemicolon naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair. Folds the uniform Self::FonteCaminhoShellSemicolon { nome: nome.to_string(), caminho: caminho.to_string() } two-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift four-line open-coded block.

Source

pub fn fonte_caminho_shell_background(nome: &str, caminho: &str) -> Self

Construct a DepError::FonteCaminhoShellBackground naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair. Folds the uniform Self::FonteCaminhoShellBackground { nome: nome.to_string(), caminho: caminho.to_string() } two-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift four-line open-coded block.

Source

pub fn fonte_caminho_shell_command_substitution( nome: &str, caminho: &str, ) -> Self

Construct a DepError::FonteCaminhoShellCommandSubstitution naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair. Folds the uniform Self::FonteCaminhoShellCommandSubstitution { nome: nome.to_string(), caminho: caminho.to_string() } two-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift four-line open-coded block.

Source

pub fn fonte_caminho_trailing_slash(nome: &str, caminho: &str) -> Self

Construct a DepError::FonteCaminhoTrailingSlash naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair. Folds the uniform Self::FonteCaminhoTrailingSlash { nome: nome.to_string(), caminho: caminho.to_string() } two-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift four-line open-coded block.

Source§

impl DepError

Source

pub fn fonte_caminho_control_char(nome: &str, caminho: &str, byte: u8) -> Self

Construct a DepError::FonteCaminhoControlChar naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair + the offending byte: u8 classification. Folds the uniform Self::FonteCaminhoControlChar { nome: nome.to_string(), caminho: caminho.to_string(), byte } three-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.

Source

pub fn fonte_caminho_shell_redirection( nome: &str, caminho: &str, byte: u8, ) -> Self

Construct a DepError::FonteCaminhoShellRedirection naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair + the offending byte: u8 classification. Folds the uniform Self::FonteCaminhoShellRedirection { nome: nome.to_string(), caminho: caminho.to_string(), byte } three-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.

Source

pub fn fonte_caminho_shell_glob(nome: &str, caminho: &str, byte: u8) -> Self

Construct a DepError::FonteCaminhoShellGlob naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair + the offending byte: u8 classification. Folds the uniform Self::FonteCaminhoShellGlob { nome: nome.to_string(), caminho: caminho.to_string(), byte } three-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.

Source

pub fn fonte_caminho_shell_subshell_grouping( nome: &str, caminho: &str, byte: u8, ) -> Self

Construct a DepError::FonteCaminhoShellSubshellGrouping naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair + the offending byte: u8 classification. Folds the uniform Self::FonteCaminhoShellSubshellGrouping { nome: nome.to_string(), caminho: caminho.to_string(), byte } three-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.

Source

pub fn fonte_caminho_shell_brace_expansion( nome: &str, caminho: &str, byte: u8, ) -> Self

Construct a DepError::FonteCaminhoShellBraceExpansion naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair + the offending byte: u8 classification. Folds the uniform Self::FonteCaminhoShellBraceExpansion { nome: nome.to_string(), caminho: caminho.to_string(), byte } three-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.

Source

pub fn fonte_caminho_shell_bracket_expansion( nome: &str, caminho: &str, byte: u8, ) -> Self

Construct a DepError::FonteCaminhoShellBracketExpansion naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair + the offending byte: u8 classification. Folds the uniform Self::FonteCaminhoShellBracketExpansion { nome: nome.to_string(), caminho: caminho.to_string(), byte } three-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.

Source

pub fn fonte_caminho_shell_quote_grouping( nome: &str, caminho: &str, byte: u8, ) -> Self

Construct a DepError::FonteCaminhoShellQuoteGrouping naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair + the offending byte: u8 classification. Folds the uniform Self::FonteCaminhoShellQuoteGrouping { nome: nome.to_string(), caminho: caminho.to_string(), byte } three-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.

Source

pub fn fonte_caminho_shell_comment(nome: &str, caminho: &str, byte: u8) -> Self

Construct a DepError::FonteCaminhoShellComment naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair + the offending byte: u8 classification. Folds the uniform Self::FonteCaminhoShellComment { nome: nome.to_string(), caminho: caminho.to_string(), byte } three-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.

Source

pub fn fonte_caminho_url_percent_encoding( nome: &str, caminho: &str, byte: u8, ) -> Self

Construct a DepError::FonteCaminhoUrlPercentEncoding naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair + the offending byte: u8 classification. Folds the uniform Self::FonteCaminhoUrlPercentEncoding { nome: nome.to_string(), caminho: caminho.to_string(), byte } three-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.

Source

pub fn fonte_caminho_shell_variable_expansion( nome: &str, caminho: &str, byte: u8, ) -> Self

Construct a DepError::FonteCaminhoShellVariableExpansion naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair + the offending byte: u8 classification. Folds the uniform Self::FonteCaminhoShellVariableExpansion { nome: nome.to_string(), caminho: caminho.to_string(), byte } three-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.

Source

pub fn fonte_caminho_shell_history_expansion( nome: &str, caminho: &str, byte: u8, ) -> Self

Construct a DepError::FonteCaminhoShellHistoryExpansion naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair + the offending byte: u8 classification. Folds the uniform Self::FonteCaminhoShellHistoryExpansion { nome: nome.to_string(), caminho: caminho.to_string(), byte } three-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.

Source

pub fn fonte_caminho_shell_history_substitution( nome: &str, caminho: &str, byte: u8, ) -> Self

Construct a DepError::FonteCaminhoShellHistorySubstitution naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair + the offending byte: u8 classification. Folds the uniform Self::FonteCaminhoShellHistorySubstitution { nome: nome.to_string(), caminho: caminho.to_string(), byte } three-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.

Source§

impl DepError

Source

pub fn versao_empty(nome: &str) -> Self

Construct a DepError::VersaoEmpty naming the offending :deps :nome. Folds the uniform Self::VersaoEmpty { nome: nome.to_string() } one-field struct-literal onto one substrate primitive so every in-crate wire-up on this variant reads through one dispatch rather than the pre-lift three-line open-coded block.

Source

pub fn fonte_repo_empty(nome: &str) -> Self

Construct a DepError::FonteRepoEmpty naming the offending :deps :nome. Folds the uniform Self::FonteRepoEmpty { nome: nome.to_string() } one-field struct-literal onto one substrate primitive so every in-crate wire-up on this variant reads through one dispatch rather than the pre-lift three-line open-coded block.

Source

pub fn fonte_pin_missing(nome: &str) -> Self

Construct a DepError::FontePinMissing naming the offending :deps :nome. Folds the uniform Self::FontePinMissing { nome: nome.to_string() } one-field struct-literal onto one substrate primitive so every in-crate wire-up on this variant reads through one dispatch rather than the pre-lift three-line open-coded block.

Source

pub fn fonte_caminho_empty(nome: &str) -> Self

Construct a DepError::FonteCaminhoEmpty naming the offending :deps :nome. Folds the uniform Self::FonteCaminhoEmpty { nome: nome.to_string() } one-field struct-literal onto one substrate primitive so every in-crate wire-up on this variant reads through one dispatch rather than the pre-lift three-line open-coded block.

Source

pub fn caracteristica_empty(nome: &str) -> Self

Construct a DepError::CaracteristicaEmpty naming the offending :deps :nome. Folds the uniform Self::CaracteristicaEmpty { nome: nome.to_string() } one-field struct-literal onto one substrate primitive so every in-crate wire-up on this variant reads through one dispatch rather than the pre-lift three-line open-coded block.

Source§

impl DepError

Source

pub fn duplicate_nome(nome: &str, list: &'static str) -> Self

Construct a DepError::DuplicateNome naming the offending :deps :nome and the author-surface list tag (:deps vs. :deps-dev) the diagnostic points the author back at. Folds the uniform Self::DuplicateNome { nome: nome.to_string(), list } two-field struct-literal onto one substrate primitive so every in-crate wire-up on this variant reads through one dispatch rather than the pre-lift open-coded struct-literal block.

Source

pub fn dep_is_self(nome: &str, list: &'static str) -> Self

Construct a DepError::DepIsSelf naming the offending :deps :nome and the author-surface list tag (:deps vs. :deps-dev) the diagnostic points the author back at. Folds the uniform Self::DepIsSelf { nome: nome.to_string(), list } two-field struct-literal onto one substrate primitive so every in-crate wire-up on this variant reads through one dispatch rather than the pre-lift open-coded struct-literal block.

Source§

impl DepError

Source

pub fn versao_invalid(nome: &str, versao: &str, reason: String) -> Self

Construct a DepError::VersaoInvalid naming the offending :deps :nome, the offending :versao axis value, and the parser-shaped rejection reason. Folds the uniform Self::VersaoInvalid { nome: nome.to_string(), versao: versao.to_string(), reason } three-field struct-literal onto one substrate primitive so every in-crate wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block. The nome: &str and versao: &str parameters accept &str literals and &String (via Deref coercion) so every existing wire-up threads through the ctor without a pre-conversion; the reason: String parameter takes an owned String (not impl Into<String>) matching the paired crate::render::* predicate’s Result<(), String> return shape every wire-up already holds owned at the call site.

Source

pub fn fonte_repo_shape(nome: &str, repo: &str, reason: String) -> Self

Construct a DepError::FonteRepoShape naming the offending :deps :nome, the offending :repo axis value, and the parser-shaped rejection reason. Folds the uniform Self::FonteRepoShape { nome: nome.to_string(), repo: repo.to_string(), reason } three-field struct-literal onto one substrate primitive so every in-crate wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block. The nome: &str and repo: &str parameters accept &str literals and &String (via Deref coercion) so every existing wire-up threads through the ctor without a pre-conversion; the reason: String parameter takes an owned String (not impl Into<String>) matching the paired crate::render::* predicate’s Result<(), String> return shape every wire-up already holds owned at the call site.

Source

pub fn caracteristica_invalid( nome: &str, caracteristica: &str, reason: String, ) -> Self

Construct a DepError::CaracteristicaInvalid naming the offending :deps :nome, the offending :caracteristica axis value, and the parser-shaped rejection reason. Folds the uniform Self::CaracteristicaInvalid { nome: nome.to_string(), caracteristica: caracteristica.to_string(), reason } three-field struct-literal onto one substrate primitive so every in-crate wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block. The nome: &str and caracteristica: &str parameters accept &str literals and &String (via Deref coercion) so every existing wire-up threads through the ctor without a pre-conversion; the reason: String parameter takes an owned String (not impl Into<String>) matching the paired crate::render::* predicate’s Result<(), String> return shape every wire-up already holds owned at the call site.

Source§

impl DepError

Source

pub fn fonte_pin_empty(nome: &str, pin: &str) -> Self

Construct a DepError::FontePinEmpty naming the offending :deps :nome and the offending :pin axis value. Folds the uniform Self::FontePinEmpty { nome: nome.to_string(), pin: pin.to_string() } two-field struct-literal onto one substrate primitive so every in-crate wire-up on this variant reads through one dispatch rather than the pre-lift four-line open-coded block. Both nome: &str and pin: &str parameters accept &str literals and &String (via Deref coercion) so every existing wire-up threads through the ctor without a pre-conversion.

Source

pub fn fonte_pin_ambiguous(nome: &str, pins: &str) -> Self

Construct a DepError::FontePinAmbiguous naming the offending :deps :nome and the offending :pins axis value. Folds the uniform Self::FontePinAmbiguous { nome: nome.to_string(), pins: pins.to_string() } two-field struct-literal onto one substrate primitive so every in-crate wire-up on this variant reads through one dispatch rather than the pre-lift four-line open-coded block. Both nome: &str and pins: &str parameters accept &str literals and &String (via Deref coercion) so every existing wire-up threads through the ctor without a pre-conversion.

Source

pub fn caracteristica_duplicate(nome: &str, caracteristica: &str) -> Self

Construct a DepError::CaracteristicaDuplicate naming the offending :deps :nome and the offending :caracteristica axis value. Folds the uniform Self::CaracteristicaDuplicate { nome: nome.to_string(), caracteristica: caracteristica.to_string() } two-field struct-literal onto one substrate primitive so every in-crate wire-up on this variant reads through one dispatch rather than the pre-lift four-line open-coded block. Both nome: &str and caracteristica: &str parameters accept &str literals and &String (via Deref coercion) so every existing wire-up threads through the ctor without a pre-conversion.

Source§

impl DepError

Source

pub fn fonte_pin_shape( nome: &str, pin: &str, value: &str, reason: String, ) -> Self

Construct a DepError::FontePinShape naming the offending :deps :nome, the offending :fonte (:tipo git …) :<pin> axis tag, the offending value, and the parser-shaped reason. Folds the uniform Self::FontePinShape { nome: nome.to_string(), pin: pin.to_string(), value: value.to_string(), reason } four-field struct-literal onto one substrate primitive so every DepSource::validate wire-up on this variant reads through one dispatch rather than the pre-lift six-line open-coded block. The nome string threads verbatim from Dep::nome at the call site; the pin string carries the author-surface :tag / :branch / :rev tag verbatim; the value string carries the offending refname / hex-OID verbatim; and reason forwards the owned String returned by crate::render::is_git_ref_name / crate::render::is_git_oid without a .into() shim.

Source

pub fn nome_invalid(nome: &str, reason: String) -> Self

Construct a DepError::NomeInvalid naming the offending :deps :nome byte-string and the parser-shaped rejection reason returned by crate::render::is_dns_1123_label.

Folds the uniform Self::NomeInvalid { nome: nome.to_string(), reason } two-field struct-literal onto one substrate primitive so every wire-up on this variant reads through one dispatch rather than the pre-lift four-line open-coded DepError::NomeInvalid { nome: self.nome.clone(), reason } block inside Dep::validate. The missing two-slot { nome, reason } rung on the DepError-side ctor-family ladder ({ nome } one-slot → [dep_nome_only_ctors!] (792aa92); { nome, <axis>: String } two-slot → [dep_nome_axis_ctors!] (7f7c950); { nome, list: &'static str } two-slot → [dep_nome_list_ctors!] (6f5e0cd); { nome, <axis>: String, reason: String } three-slot → [dep_nome_axis_reason_ctors!] (5621f8a); { nome, pin, value, reason } four-slot → DepError::fonte_pin_shape (86e2a17)) — the sole variant on the envelope carrying the { nome: String, reason: String } two-slot shape without a middle axis, matching the peer crate::manifest::ManifestError::NomeInvalid + crate::aplicacao::AplicacaoError::MembroCaixaInvalid + crate::supervisor::SupervisorError::ChildCaixaInvalid four-axis DNS-1123 caixa-identifier diagnostic family the existing nome_invalid_diagnostic_carries_offending_name test pins on this envelope.

The nome: &str parameter accepts &str literals and &String (via Deref coercion) so the sole in-crate wire-up threads through the ctor without a pre-conversion; the reason: String parameter takes an owned String (not impl Into<String>) matching the crate::render::is_dns_1123_label predicate’s Result<(), String> return shape the sole wire-up site already holds owned at the call site, keeping the routing byte-equal to the pre-lift block. Same owned-String-forward reason payload discipline as the sibling three-slot family [dep_nome_axis_reason_ctors!] on { nome, <axis>, reason } and the four-slot DepError::fonte_pin_shape on { nome, pin, value, reason }.

Every future consumer that raises the same diagnostic outside Dep::validate — a deferred caixa-resolver per-:deps re-validator at lacre-resolve time re-checking each declared dep’s :nome against the same DNS-1123 predicate the apiserver- side schema uses (the :nome value flows verbatim as the target caixa’s :nome, the rendered lareira-<nome> Helm chart name segment, the LABEL_PROGRAM label value, and the resolver’s checkout-directory leaf), a future feira validate --deps per-caixa admission verb re-running the shape gate on demand, a per-lacre overlay resolver rejecting an author-supplied dep’s :nome against a cluster-local snapshot the M4 CR materializer projects, a future authoring-surface widening the field into a (String, Vec<Suggestion>) pair carrying a “did-you-mean-” hint — now reaches this variant through one call rather than re-inlining the four-line struct-literal in lockstep with the one in-crate wire-up site.

Trait Implementations§

Source§

impl Debug for DepError

Source§

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

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

impl Display for DepError

Source§

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

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

impl Eq for DepError

Source§

impl Error for DepError

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 DepError

Source§

fn eq(&self, other: &DepError) -> 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 DepError

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.