Page MenuHomeDevCentral

D2440.id6141.diff
No OneTemporary

D2440.id6141.diff

diff --git a/src/api/key.rs b/src/api/key.rs
new file mode 100755
--- /dev/null
+++ b/src/api/key.rs
@@ -0,0 +1,11 @@
+//! # API key, with associated metadata.
+//!
+//! This module provides API key trait.
+
+use std::collections::HashMap;
+
+/// Represents an API key
+pub struct APIKey {
+ pub key: String,
+ pub metadata: HashMap<String, String>,
+}
diff --git a/src/api/mod.rs b/src/api/mod.rs
--- a/src/api/mod.rs
+++ b/src/api/mod.rs
@@ -7,3 +7,4 @@
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
pub mod replies;
+pub mod key;

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 26, 15:21 (21 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2264751
Default Alt Text
D2440.id6141.diff (568 B)

Event Timeline