MCPcopy Create free account
hub / github.com/chirpstack/chirpstack / validate

Method validate

chirpstack/src/storage/application.rs:38–43  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

36
37impl Application {
38 fn validate(&self) -> Result<(), Error> {
39 if self.name.is_empty() {
40 return Err(Error::Validation("name is not set".into()));
41 }
42 Ok(())
43 }
44}
45
46impl Default for Application {

Callers 2

createFunction · 0.45
updateFunction · 0.45

Calls 1

intoMethod · 0.45

Tested by

no test coverage detected