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

Method validate

chirpstack/src/storage/api_key.rs:25–31  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

23
24impl ApiKey {
25 fn validate(&self) -> Result<(), Error> {
26 if self.name.is_empty() {
27 return Err(Error::Validation("name is not set".into()));
28 }
29
30 Ok(())
31 }
32}
33
34impl Default for ApiKey {

Callers 1

createFunction · 0.45

Calls 1

intoMethod · 0.45

Tested by

no test coverage detected