keybase-protocol 0.1.1

Provides the Keybase types defined in the Keybase AVDL Protocol files for Rust.
Documentation
// Namespace: "keybase.1"
// Protocol: "metadata"
#![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::backend_common::*;
pub struct KeyHalf {
  pub user: UID,
  pub deviceKID: KID,
  pub key: Option<String>,
}

pub struct MDBlock {
  pub version: i32,
  pub timestamp: Time,
  pub block: Option<String>,
}

pub struct KeyBundle {
  pub version: i32,
  pub bundle: Option<String>,
}

pub struct MetadataResponse {
  pub folderID: Option<String>,
  pub mdBlocks: Option<Vec<MDBlock>>,
}

pub struct MerkleRoot {
  pub version: i32,
  pub root: Option<String>,
}

pub struct PingResponse {
  pub timestamp: Time,
}

pub struct KeyBundleResponse {
  // @lint("ignore")
  pub WriterBundle: KeyBundle,
  // @lint("ignore")
  pub ReaderBundle: KeyBundle,
}

pub type LockID = i64;

pub type MDPriority = i32;

pub struct LockContext {
  pub requireLockID: LockID,
  pub releaseAfterSuccess: bool,
}

pub struct FindNextMDResponse {
  pub kbfsRoot: MerkleRoot,
  pub merkleNodes: Option<Vec<String>>,
  pub rootSeqno: Seqno,
  pub rootHash: HashMeta,
}