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

Function get_application

chirpstack/src/api/application.rs:2033–2049  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2031 }
2032
2033 async fn get_application() -> application::Application {
2034 // create tenant
2035 let t = tenant::create(tenant::Tenant {
2036 name: "test-tenant".into(),
2037 ..Default::default()
2038 })
2039 .await
2040 .unwrap();
2041
2042 application::create(application::Application {
2043 tenant_id: t.id,
2044 name: "test-app".into(),
2045 ..Default::default()
2046 })
2047 .await
2048 .unwrap()
2049 }
2050
2051 async fn get_user() -> user::User {
2052 let u = user::User {

Calls 3

unwrapMethod · 0.80
createFunction · 0.50
intoMethod · 0.45