[][src]Struct libknox::Vault

pub struct Vault {
    pub identities: RepeatedField<String>,
    pub index: HashMap<String, String>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

identities: RepeatedField<String>index: HashMap<String, String>unknown_fields: UnknownFieldscached_size: CachedSize

Methods

impl Vault[src]

pub fn new() -> Vault[src]

pub fn clear_identities(&mut self)[src]

pub fn set_identities(&mut self, v: RepeatedField<String>)[src]

pub fn mut_identities(&mut self) -> &mut RepeatedField<String>[src]

pub fn take_identities(&mut self) -> RepeatedField<String>[src]

pub fn get_identities(&self) -> &[String][src]

pub fn clear_index(&mut self)[src]

pub fn set_index(&mut self, v: HashMap<String, String>)[src]

pub fn mut_index(&mut self) -> &mut HashMap<String, String>[src]

pub fn take_index(&mut self) -> HashMap<String, String>[src]

pub fn get_index(&self) -> &HashMap<String, String>[src]

Trait Implementations

impl PartialEq<Vault> for Vault[src]

impl Clone for Vault[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for Vault[src]

impl Debug for Vault[src]

impl Message for Vault[src]

fn write_to(&self, os: &mut CodedOutputStream) -> Result<(), ProtobufError>[src]

Write the message to the stream. Read more

fn write_length_delimited_to(
    &self,
    os: &mut CodedOutputStream
) -> Result<(), ProtobufError>
[src]

Write the message to the stream prepending the message with message length encoded as varint. Read more

fn write_length_delimited_to_vec(
    &self,
    vec: &mut Vec<u8>
) -> Result<(), ProtobufError>
[src]

Write the message to the vec, prepend the message with message length encoded as varint. Read more

fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>[src]

Update this message object with fields read from given stream.

fn check_initialized(&self) -> Result<(), ProtobufError>[src]

Check if all required fields of this object are initialized.

fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>[src]

Write the message to the writer.

fn write_to_vec(&self, v: &mut Vec<u8>) -> Result<(), ProtobufError>[src]

Write the message to bytes vec.

fn write_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>[src]

Write the message to bytes vec.

fn write_length_delimited_to_writer(
    &self,
    w: &mut dyn Write
) -> Result<(), ProtobufError>
[src]

Write the message to the writer, prepend the message with message length encoded as varint. Read more

fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>[src]

Write the message to the bytes vec, prepend the message with message length encoded as varint. Read more

fn type_id(&self) -> TypeId[src]

Get type id for downcasting.

impl Clear for Vault[src]

impl ProtobufValue for Vault[src]

fn as_any(&self) -> &(dyn Any + 'static)[src]

Convert to Any

fn is_non_zero(&self) -> bool[src]

Is value non-zero?

fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]

Return ProtobufValueRef if self is Copy. Read more

Auto Trait Implementations

impl Send for Vault

impl Sync for Vault

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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

type Error = Infallible

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<Src, Dst> ValueInto<Dst> for Src where
    Dst: ValueFrom<Src>, 

type Err = <Dst as ValueFrom<Src>>::Err

The error type produced by a failed conversion.

impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src where
    Dst: ApproxFrom<Src, Scheme>,
    Scheme: ApproxScheme, 

type Err = <Dst as ApproxFrom<Src, Scheme>>::Err

The error type produced by a failed conversion.

impl<T, Dst> ConvAsUtil<Dst> for T

fn approx(self) -> Result<Dst, Self::Err> where
    Self: ApproxInto<Dst, DefaultApprox>, 

Approximate the subject with the default scheme.

fn approx_by<Scheme>(self) -> Result<Dst, Self::Err> where
    Scheme: ApproxScheme,
    Self: ApproxInto<Dst, Scheme>, 

Approximate the subject with a specific scheme.

impl<T> ConvUtil for T

fn approx_as<Dst>(self) -> Result<Dst, Self::Err> where
    Self: ApproxInto<Dst, DefaultApprox>, 

Approximate the subject to a given type with the default scheme.

fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err> where
    Scheme: ApproxScheme,
    Self: ApproxInto<Dst, Scheme>, 

Approximate the subject to a given type with a specific scheme.

fn into_as<Dst>(self) -> Dst where
    Self: Into<Dst>, 

Convert the subject to a given type.

fn try_as<Dst>(self) -> Result<Dst, Self::Err> where
    Self: TryInto<Dst>, 

Attempt to convert the subject to a given type.

fn value_as<Dst>(self) -> Result<Dst, Self::Err> where
    Self: ValueInto<Dst>, 

Attempt a value conversion of the subject to a given type.

impl<Src> ValueFrom<Src> for Src

type Err = NoError

The error type produced by a failed conversion.

impl<Src, Scheme> ApproxFrom<Src, Scheme> for Src where
    Scheme: ApproxScheme, 

type Err = NoError

The error type produced by a failed conversion.

impl<Src> TryFrom<Src> for Src

type Err = NoError

The error type produced by a failed conversion.

impl<Src, Dst> TryInto<Dst> for Src where
    Dst: TryFrom<Src>, 

type Err = <Dst as TryFrom<Src>>::Err

The error type produced by a failed conversion.

impl<T> Same<T> for T

type Output = T

Should always be Self