Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3780547
D2440.id6141.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
568 B
Referenced Files
None
Subscribers
None
D2440.id6141.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D2440: WIP: API key
Attached
Detach File
Event Timeline
Log In to Comment