pub struct Authorization {
pub sign_commit: bool,
pub sign_tag: bool,
pub sign_archive: bool,
pub add_user: bool,
pub retire_user: bool,
pub audit: bool,
pub keyring: String,
}
Fields§
§sign_commit: bool
§sign_tag: bool
§sign_archive: bool
§add_user: bool
§retire_user: bool
§audit: bool
§keyring: String
Implementations§
Source§impl Authorization
impl Authorization
pub fn rights(&self) -> Rights
pub fn certs(&self) -> Result<impl Iterator<Item = Result<RawCert<'_>>>>
pub fn set_certs(&mut self, certs: Vec<Cert>) -> Result<()>
pub fn set_certs_filter<S, U>(
&mut self,
certs: Vec<Cert>,
subkeys: S,
userids: U,
) -> Result<()>where
S: FnMut(&SubordinateKeyAmalgamation<'_, PublicParts>) -> bool,
U: FnMut(&UserIDAmalgamation<'_>) -> bool,
Trait Implementations§
Source§impl Clone for Authorization
impl Clone for Authorization
Source§fn clone(&self) -> Authorization
fn clone(&self) -> Authorization
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for Authorization
impl Default for Authorization
Source§fn default() -> Authorization
fn default() -> Authorization
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Authorization
impl<'de> Deserialize<'de> for Authorization
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 Authorization
impl PartialEq for Authorization
Source§impl Serialize for Authorization
impl Serialize for Authorization
impl Eq for Authorization
impl StructuralPartialEq for Authorization
Auto Trait Implementations§
impl Freeze for Authorization
impl RefUnwindSafe for Authorization
impl Send for Authorization
impl Sync for Authorization
impl Unpin for Authorization
impl UnwindSafe for Authorization
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.