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

Method validate

chirpstack/src/storage/multicast.rs:41–46  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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

Callers 3

createFunction · 0.45
updateFunction · 0.45
enqueueFunction · 0.45

Calls 2

to_stringMethod · 0.80
intoMethod · 0.45

Tested by

no test coverage detected