[][src]Struct kerberos_asn1::PrincipalName

pub struct PrincipalName {
    pub name_type: Int32,
    pub name_string: Vec<KerberosString>,
}

(PrincipalName) Name of some Kerberos entity.

PrincipalName ::= SEQUENCE {
        name-type     [0] Int32,
        name-string   [1] SEQUENCE OF KerberosString
}

Used for client name and service name.

Fields

name_type: Int32name_string: Vec<KerberosString>

Implementations

impl PrincipalName[src]

pub fn new(name_type: i32, string: KerberosString) -> PrincipalName[src]

pub fn main_name(&self) -> &KerberosString[src]

pub fn push(&mut self, string: KerberosString)[src]

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

Trait Implementations

impl Asn1Object for PrincipalName[src]

impl Clone for PrincipalName[src]

impl Debug for PrincipalName[src]

impl Default for PrincipalName[src]

impl Display for PrincipalName[src]

impl PartialEq<PrincipalName> for PrincipalName[src]

fn eq(&self, other: &PrincipalName) -> bool[src]

String case insensitive comparison

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> ToString for T where
    T: Display + ?Sized
[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.