pub struct PrincipalName {
pub name_type: NameType,
pub name_string: Vec<String>,
}Expand description
Kerberos principal name.
A principal has a name type and one or more name components.
For example, krbtgt/EXAMPLE.COM has type SrvInst and components
["krbtgt", "EXAMPLE.COM"].
Fields§
§name_type: NameTypeName type (NT_PRINCIPAL, NT_SRV_INST, etc.)
name_string: Vec<String>Name string components
Implementations§
Source§impl PrincipalName
impl PrincipalName
Sourcepub fn new_principal(name: &str) -> Self
pub fn new_principal(name: &str) -> Self
Create a simple principal (type NT_PRINCIPAL, single component).
Sourcepub fn new_service(service: &str, instance: &str) -> Self
pub fn new_service(service: &str, instance: &str) -> Self
Create a service principal (type NT_SRV_INST, two components).
Trait Implementations§
Source§impl Clone for PrincipalName
impl Clone for PrincipalName
Source§fn clone(&self) -> PrincipalName
fn clone(&self) -> PrincipalName
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrincipalName
impl Debug for PrincipalName
Source§impl PartialEq for PrincipalName
impl PartialEq for PrincipalName
impl Eq for PrincipalName
impl StructuralPartialEq for PrincipalName
Auto Trait Implementations§
impl Freeze for PrincipalName
impl RefUnwindSafe for PrincipalName
impl Send for PrincipalName
impl Sync for PrincipalName
impl Unpin for PrincipalName
impl UnwindSafe for PrincipalName
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)