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

Method to_proto

chirpstack/src/api/helpers.rs:43–60  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

41
42impl ToProto<common::Region> for CommonName {
43 fn to_proto(self) -> common::Region {
44 match self {
45 CommonName::EU868 => common::Region::Eu868,
46 CommonName::US915 => common::Region::Us915,
47 CommonName::CN779 => common::Region::Cn779,
48 CommonName::EU433 => common::Region::Eu433,
49 CommonName::AU915 => common::Region::Au915,
50 CommonName::CN470 => common::Region::Cn470,
51 CommonName::AS923 => common::Region::As923,
52 CommonName::AS923_2 => common::Region::As9232,
53 CommonName::AS923_3 => common::Region::As9233,
54 CommonName::AS923_4 => common::Region::As9234,
55 CommonName::KR920 => common::Region::Kr920,
56 CommonName::IN865 => common::Region::In865,
57 CommonName::RU864 => common::Region::Ru864,
58 CommonName::ISM2400 => common::Region::Ism2400,
59 }
60 }
61}
62
63impl FromProto<Revision> for common::RegParamsRevision {

Callers 15

log_tx_ack_errorMethod · 0.80
send_tx_ack_eventMethod · 0.80
log_downlink_metaMethod · 0.80
handleFunction · 0.80
handleFunction · 0.80
list_regionsMethod · 0.80
get_regionMethod · 0.80
getMethod · 0.80
activateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected