[][src]Struct koibumi_box::User

pub struct User { /* fields omitted */ }

An object represents an user.

Implementations

impl User[src]

pub fn id(&self) -> &[u8][src]

Returns the ID.

pub fn subscriptions(&self) -> &[Address][src]

Returns the subscription list.

pub fn subscriptions_mut(&mut self) -> &mut Vec<Address>[src]

Returns the subscription list as mutable reference.

pub fn private_identities(&self) -> &[PrivateIdentity][src]

Returns the private identity list.

pub fn private_identities_mut(&mut self) -> &mut Vec<PrivateIdentity>[src]

Returns the private identity list as mutable reference.

pub fn private_identity_by_address(
    &self,
    address: &Address
) -> Option<&PrivateIdentity>
[src]

Finds the private identity by address.

pub fn contacts(&self) -> &[Contact][src]

Returns the contact list.

pub fn contacts_mut(&mut self) -> &mut Vec<Contact>[src]

Returns the contact list as mutable reference.

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

Returns the aliases.

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

Returns the aliases as mutable reference.

pub fn alias<'a>(&'a self, address: &'a str) -> &'a str[src]

Returns the alias corresponding to the address.

pub fn rich_alias(&self, address: &str) -> String[src]

Returns the rich alias corresponding to the address.

Trait Implementations

impl Clone for User[src]

impl Debug for User[src]

impl Eq for User[src]

impl From<User> for User[src]

impl PartialEq<User> for User[src]

impl StructuralEq for User[src]

impl StructuralPartialEq for User[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

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

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

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

impl<T> TryConv for T

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<V, T> VZip<V> for T where
    V: MultiLane<T>,