[][src]Struct aerospike::Key

pub struct Key {
    pub namespace: String,
    pub set_name: String,
    pub user_key: Option<Value>,
    pub digest: [u8; 20],
}

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.

Methods

impl Key[src]

pub fn new<S>(namespace: S, set_name: S, key: Value) -> Result<Self> where
    S: Into<String>, 
[src]

Construct a new key given a namespace, a set name and a user key value.

Panics

Only integers, strings and blobs (Vec<u8>) can be used as user keys. The constructor will panic if any other value type is passed.

Trait Implementations

impl Clone for Key[src]

impl PartialEq<Key> for Key[src]

impl Debug for Key[src]

impl Display for Key[src]

impl StructuralPartialEq for Key[src]

Auto Trait Implementations

impl Send for Key

impl Sync for Key

impl Unpin for Key

impl UnwindSafe for Key

impl RefUnwindSafe for Key

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,