pub struct ExtendedUserMapping {
admin_secret_handling: AdministrativeSecretHandling,
non_admin_secret_handling: NonAdministrativeSecretHandling,
connections: HashSet<Connection>,
user_mapping: UserMapping,
}
Expand description
A UserMapping
centric view of a HermeticParallelConfig
.
Wraps a single UserMapping
, as well as the system-wide AdministrativeSecretHandling
,
NonAdministrativeSecretHandling
and [Connection
]s.
Fields§
§admin_secret_handling: AdministrativeSecretHandling
§non_admin_secret_handling: NonAdministrativeSecretHandling
§connections: HashSet<Connection>
§user_mapping: UserMapping
Implementations§
Source§impl ExtendedUserMapping
impl ExtendedUserMapping
Sourcepub fn new(
admin_secret_handling: AdministrativeSecretHandling,
non_admin_secret_handling: NonAdministrativeSecretHandling,
connections: HashSet<Connection>,
user_mapping: UserMapping,
) -> Self
pub fn new( admin_secret_handling: AdministrativeSecretHandling, non_admin_secret_handling: NonAdministrativeSecretHandling, connections: HashSet<Connection>, user_mapping: UserMapping, ) -> Self
Creates a new ExtendedUserMapping
.
Sourcepub fn get_admin_secret_handling(&self) -> AdministrativeSecretHandling
pub fn get_admin_secret_handling(&self) -> AdministrativeSecretHandling
Returns the AdministrativeSecretHandling
.
Sourcepub fn get_connections(&self) -> HashSet<Connection>
pub fn get_connections(&self) -> HashSet<Connection>
Returns the [Connection
]s.
Sourcepub fn get_non_admin_secret_handling(&self) -> NonAdministrativeSecretHandling
pub fn get_non_admin_secret_handling(&self) -> NonAdministrativeSecretHandling
Returns the NonAdministrativeSecretHandling
.
Sourcepub fn get_user_mapping(&self) -> &UserMapping
pub fn get_user_mapping(&self) -> &UserMapping
Returns the UserMapping
.
Trait Implementations§
Source§impl Clone for ExtendedUserMapping
impl Clone for ExtendedUserMapping
Source§fn clone(&self) -> ExtendedUserMapping
fn clone(&self) -> ExtendedUserMapping
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ExtendedUserMapping
impl Debug for ExtendedUserMapping
Source§impl<'de> Deserialize<'de> for ExtendedUserMapping
impl<'de> Deserialize<'de> for ExtendedUserMapping
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ExtendedUserMapping
impl PartialEq for ExtendedUserMapping
Source§impl Serialize for ExtendedUserMapping
impl Serialize for ExtendedUserMapping
impl Eq for ExtendedUserMapping
impl StructuralPartialEq for ExtendedUserMapping
Auto Trait Implementations§
impl Freeze for ExtendedUserMapping
impl RefUnwindSafe for ExtendedUserMapping
impl Send for ExtendedUserMapping
impl Sync for ExtendedUserMapping
impl Unpin for ExtendedUserMapping
impl UnwindSafe for ExtendedUserMapping
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.