pub struct BulkUser {
pub principal: Principal,
pub token_hash: Option<String>,
pub token_label: String,
pub openssh_public_key: Option<String>,
pub grants: Vec<Grant>,
}Expand description
One user of a bulk import — see AuthTable::bulk_add_users.
Fields§
§principal: PrincipalThe principal to create.
token_hash: Option<String>token_hash of an access-token secret, when the user gets one. The
secret itself stays with the caller, as it does for
AuthTable::register_token.
token_label: StringThe label stored beside the token; ignored without token_hash.
openssh_public_key: Option<String>An OpenSSH public key line to register for the user, when they get one.
Parsed and fingerprinted here exactly as AuthTable::register_key
does, so a bulk-imported key and a singly-registered one are the same
record.
grants: Vec<Grant>Grants to install, replacing nothing — the principal is new.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BulkUser
impl RefUnwindSafe for BulkUser
impl Send for BulkUser
impl Sync for BulkUser
impl Unpin for BulkUser
impl UnsafeUnpin for BulkUser
impl UnwindSafe for BulkUser
Blanket Implementations§
impl<T> Allocation for T
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more