#[non_exhaustive]pub enum GhostkeyResponse {
Show 20 variants
ImportResult {
fingerprint: String,
notary_info: String,
},
GhostKeyList {
keys: Vec<GhostKeyInfo>,
},
GhostKeyDetail {
fingerprint: String,
certificate_pem: String,
label: Option<String>,
notary_info: String,
},
Certificate {
fingerprint: String,
certificate_pem: String,
},
SignResult {
scoped_payload: Vec<u8>,
signature: Vec<u8>,
certificate_pem: String,
},
DefaultKeyResult {
fingerprint: Option<String>,
},
DefaultKeySet {
fingerprint: String,
},
VerifyResult {
valid: bool,
signer_fingerprint: Option<String>,
notary_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>,
},
ExportResult {
fingerprint: String,
certificate_pem: String,
signing_key_pem: String,
label: Option<String>,
},
ExportAllResult {
keys: Vec<ExportedGhostKey>,
},
PermissionDenied {
fingerprint: String,
requestor: SignatureRequestor,
},
AccessDenied {
requestor: SignatureRequestor,
},
NoIdentityAvailable,
KeyNotFound {
fingerprint: String,
},
Error {
message: String,
},
}Expand description
Responses from the ghostkey delegate.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ImportResult
GhostKeyList
Fields
§
keys: Vec<GhostKeyInfo>GhostKeyDetail
Certificate
SignResult
Fields
DefaultKeyResult
DefaultKeySet
VerifyResult
Fields
§
requestor: Option<SignatureRequestor>Deleted
LabelSet
PermissionGranted
PermissionRevoked
PermissionList
ExportResult
ExportAllResult
Fields
§
keys: Vec<ExportedGhostKey>PermissionDenied
AccessDenied
Permission denied for a request that didn’t name a specific
fingerprint – today this means the user denied a
RequestAnyAccess prompt. Distinct from PermissionDenied so
callers don’t have to invent a placeholder fingerprint to
pattern-match.
Fields
§
requestor: SignatureRequestorNoIdentityAvailable
The user has no ghostkeys. Apps should direct the user to freenet.org/ghostkey to purchase one.
KeyNotFound
The requested ghostkey fingerprint was not found.
Error
Generic error for unexpected failures.
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 (const: unstable) · 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