keybase-protocol 0.1.1

Provides the Keybase types defined in the Keybase AVDL Protocol files for Rust.
Documentation
// Namespace: "keybase.1"
// Protocol: "pgp"
#![allow(dead_code)]
#![allow(non_snake_case)]
#![allow(non_camel_case_types)]
#![allow(unused_imports)]
use serde::{Serialize, Deserialize};
use serde_repr::{Deserialize_repr, Serialize_repr};use super::*;

use super::common::*;
use super::identify_common::*;
#[derive(Serialize_repr, Deserialize_repr, Debug, Hash, PartialEq, Eq)]
#[repr(u8)]
pub enum SignMode {
  Attached_0,
  Detached_1,
  Clear_2,
}

pub struct PGPSignOptions {
  pub keyQuery: Option<String>,
  pub mode: SignMode,
  pub binaryIn: bool,
  pub binaryOut: bool,
}





pub struct PGPEncryptOptions {
  pub recipients: Option<Vec<String>>,
  pub noSign: bool,
  pub noSelf: bool,
  pub binaryOut: bool,
  pub keyQuery: Option<String>,
}



pub struct PGPSigVerification {
  pub isSigned: bool,
  pub verified: bool,
  pub signer: User,
  pub signKey: PublicKey,
}

pub struct PGPDecryptOptions {
  pub assertSigned: bool,
  pub signedBy: Option<String>,
}



pub struct PGPVerifyOptions {
  pub signedBy: Option<String>,
  pub signature: Option<String>,
}





pub struct KeyInfo {
  pub fingerprint: Option<String>,
  pub key: Option<String>,
  pub desc: Option<String>,
}

pub struct PGPQuery {
  pub secret: bool,
  pub query: Option<String>,
  pub exactMatch: bool,
}







// @lint("ignore")
pub struct PGPCreateUids {
  pub useDefault: bool,
  pub ids: Option<Vec<PGPIdentity>>,
}

// @lint("ignore")


// @lint("ignore")








pub struct PGPPurgeRes {
  pub filenames: Option<Vec<String>>,
}