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

Function get_item

chirpstack/src/storage/device_queue.rs:78–85  ·  view source on GitHub ↗
(id: &Uuid)

Source from the content-addressed store, hash-verified

76}
77
78pub async fn get_item(id: &Uuid) -> Result<DeviceQueueItem, Error> {
79 let qi = device_queue_item::dsl::device_queue_item
80 .find(&fields::Uuid::from(id))
81 .first(&mut get_async_db_conn().await?)
82 .await
83 .map_err(|e| Error::from_diesel(e, id.to_string()))?;
84 Ok(qi)
85}
86
87pub async fn update_item(qi: DeviceQueueItem) -> Result<DeviceQueueItem, Error> {
88 let qi: DeviceQueueItem =

Callers 3

get_device_queue_itemMethod · 0.85
test_queue_itemFunction · 0.85
test_class_bFunction · 0.85

Calls 2

to_stringMethod · 0.80
get_async_db_connFunction · 0.70

Tested by 2

test_queue_itemFunction · 0.68
test_class_bFunction · 0.68