Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
24
impl 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
34
impl Default for ApiKey {
Callers
1
create
Function · 0.45
Calls
1
into
Method · 0.45
Tested by
no test coverage detected