[][src]Struct kerberos_ccache::Principal

pub struct Principal {
    pub name_type: u32,
    pub realm: CountedOctetString,
    pub components: Vec<CountedOctetString>,
}

Name of some Kerberos entity.

Definition

principal {
          uint32_t name_type;           /* not present if version 0x0501 */
          uint32_t num_components;      /* sub 1 if version 0x501 */
          counted_octet_string realm;
          counted_octet_string components[num_components];
};

Fields

name_type: u32realm: CountedOctetStringcomponents: Vec<CountedOctetString>

Implementations

impl Principal[src]

pub fn new(
    name_type: u32,
    realm: CountedOctetString,
    components: Vec<CountedOctetString>
) -> Self
[src]

pub fn build(self) -> Vec<u8>[src]

Build the binary representation

pub fn parse(raw: &[u8]) -> IResult<&[u8], Self>[src]

Creates a new instance from the binary representation

Error

Returns error when the binary has not the expected format.

Trait Implementations

impl Clone for Principal[src]

impl Debug for Principal[src]

impl PartialEq<Principal> for Principal[src]

impl StructuralPartialEq for Principal[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> 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, 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.