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

Method validate

chirpstack/src/storage/device.rs:146–151  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

144
145impl Device {
146 fn validate(&self) -> Result<(), Error> {
147 if self.name.is_empty() {
148 return Err(Error::Validation("name is not set".into()));
149 }
150 Ok(())
151 }
152
153 pub fn get_device_session(&self) -> Result<&internal::DeviceSession, Error> {
154 self.device_session

Callers 5

updateFunction · 0.45
create_deploymentFunction · 0.45
update_deploymentFunction · 0.45
createFunction · 0.45
updateFunction · 0.45

Calls 1

intoMethod · 0.45

Tested by

no test coverage detected