pub enum GhostkeyResponse {
Show 13 variants
ImportResult {
fingerprint: String,
delegate_info: String,
},
GhostKeyList {
keys: Vec<GhostKeyInfo>,
},
GhostKeyDetail {
fingerprint: String,
certificate_pem: String,
label: Option<String>,
delegate_info: String,
},
Certificate {
fingerprint: String,
certificate_pem: String,
},
SignResult {
scoped_payload: Vec<u8>,
signature: Vec<u8>,
certificate_pem: String,
},
VerifyResult {
valid: bool,
signer_fingerprint: Option<String>,
delegate_info: Option<String>,
requestor: Option<SignatureRequestor>,
message: Option<Vec<u8>>,
},
Deleted {
fingerprint: String,
},
LabelSet {
fingerprint: String,
label: String,
},
PermissionGranted {
fingerprint: String,
requestor: SignatureRequestor,
},
PermissionRevoked {
fingerprint: String,
requestor: SignatureRequestor,
},
PermissionList {
fingerprint: String,
requestors: Vec<SignatureRequestor>,
},
PermissionDenied {
fingerprint: String,
requestor: SignatureRequestor,
},
Error {
message: String,
},
}Expand description
Responses from the ghostkey delegate.
Variants§
ImportResult
GhostKeyList
Fields
§
keys: Vec<GhostKeyInfo>GhostKeyDetail
Certificate
SignResult
Fields
VerifyResult
Fields
§
requestor: Option<SignatureRequestor>Deleted
LabelSet
PermissionGranted
PermissionRevoked
PermissionList
PermissionDenied
Error
Trait Implementations§
Source§impl Clone for GhostkeyResponse
impl Clone for GhostkeyResponse
Source§fn clone(&self) -> GhostkeyResponse
fn clone(&self) -> GhostkeyResponse
Returns a duplicate 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 GhostkeyResponse
impl Debug for GhostkeyResponse
Source§impl<'de> Deserialize<'de> for GhostkeyResponse
impl<'de> Deserialize<'de> for GhostkeyResponse
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
Auto Trait Implementations§
impl Freeze for GhostkeyResponse
impl RefUnwindSafe for GhostkeyResponse
impl Send for GhostkeyResponse
impl Sync for GhostkeyResponse
impl Unpin for GhostkeyResponse
impl UnsafeUnpin for GhostkeyResponse
impl UnwindSafe for GhostkeyResponse
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