pub struct Key {
pub namespace: String,
pub set_name: String,
pub user_key: Option<Value>,
pub digest: [u8; 20],
}
Expand description
Unique record identifier. Records can be identified using a specified namespace, an optional set name and a user defined key which must be uique within a set. Records can also be identified by namespace/digest, which is the combination used on the server.
Fields§
§namespace: String
Namespace.
set_name: String
Set name.
user_key: Option<Value>
Original user key.
digest: [u8; 20]
Unique server hash value generated from set name and user key.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Key
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnwindSafe for Key
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more