MCPcopy Create free account
hub / github.com/Botloader/botloader / push_error

Method push_error

components/validation/src/lib.rs:67–74  ·  view source on GitHub ↗
(&mut self, msg: impl Into<String>)

Source from the content-addressed store, hash-verified

65 }
66
67 fn push_error(&mut self, msg: impl Into<String>) {
68 let fields = self.field_stack.join(".");
69
70 self.errs.push(ValidationError {
71 field: fields,
72 msg: msg.into(),
73 });
74 }
75
76 pub fn push_field(&mut self, field: impl Into<String>) {
77 self.field_stack.push(field.into());

Callers 3

validateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected