pub struct JsonFlags(pub u32);Expand description
Flags controlling which fields rnp_key_to_json emits. Wraps the
RNP_JSON_* constants (distinct from JsonDumpFlags).
Tuple Fields§
§0: u32Implementations§
Source§impl JsonFlags
impl JsonFlags
Sourcepub const PUBLIC_MPIS: Self
pub const PUBLIC_MPIS: Self
Include public-key MPIs.
Sourcepub const SECRET_MPIS: Self
pub const SECRET_MPIS: Self
Include secret-key MPIs (requires unlocked key).
Sourcepub const SIGNATURES: Self
pub const SIGNATURES: Self
Include signatures array.
Sourcepub const SIGNATURE_MPIS: Self
pub const SIGNATURE_MPIS: Self
Include per-signature MPIs.
pub fn bits(self) -> u32
Trait Implementations§
impl Copy for JsonFlags
Auto Trait Implementations§
impl Freeze for JsonFlags
impl RefUnwindSafe for JsonFlags
impl Send for JsonFlags
impl Sync for JsonFlags
impl Unpin for JsonFlags
impl UnsafeUnpin for JsonFlags
impl UnwindSafe for JsonFlags
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