bitwarden_importers/importers/keeper/proto/
tokens.rs1#[derive(Clone, PartialEq, ::prost::Message)]
3pub struct BreachWatchUpdateRequest {
4 #[prost(message, repeated, tag = "1")]
5 pub breach_watch_record_request: ::prost::alloc::vec::Vec<BreachWatchRecordRequest>,
6 #[prost(bytes = "vec", tag = "2")]
7 pub encrypted_data: ::prost::alloc::vec::Vec<u8>,
8}
9#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
10pub struct BreachWatchRecordRequest {
11 #[prost(bytes = "vec", tag = "1")]
12 pub record_uid: ::prost::alloc::vec::Vec<u8>,
13 #[prost(bytes = "vec", tag = "2")]
14 pub encrypted_data: ::prost::alloc::vec::Vec<u8>,
15 #[prost(enumeration = "BreachWatchInfoType", tag = "3")]
16 pub breach_watch_info_type: i32,
17 #[prost(bool, tag = "4")]
18 pub update_user_who_scanned: bool,
19}
20#[derive(Clone, PartialEq, ::prost::Message)]
21pub struct BreachWatchData {
22 #[prost(message, repeated, tag = "1")]
23 pub passwords: ::prost::alloc::vec::Vec<BwPassword>,
24 #[prost(message, repeated, tag = "2")]
25 pub emails: ::prost::alloc::vec::Vec<BwPassword>,
26 #[prost(message, repeated, tag = "3")]
27 pub domains: ::prost::alloc::vec::Vec<BwPassword>,
28}
29#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
30pub struct BwPassword {
31 #[prost(string, tag = "1")]
32 pub value: ::prost::alloc::string::String,
33 #[prost(uint64, tag = "2")]
34 pub resolved: u64,
35 #[prost(enumeration = "BwStatus", tag = "3")]
36 pub status: i32,
37 #[prost(bytes = "vec", tag = "4")]
38 pub euid: ::prost::alloc::vec::Vec<u8>,
39}
40#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
41#[repr(i32)]
42pub enum BreachWatchInfoType {
43 Record = 0,
44 AlternatePassword = 1,
45}
46impl BreachWatchInfoType {
47 pub fn as_str_name(&self) -> &'static str {
52 match self {
53 Self::Record => "RECORD",
54 Self::AlternatePassword => "ALTERNATE_PASSWORD",
55 }
56 }
57 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
59 match value {
60 "RECORD" => Some(Self::Record),
61 "ALTERNATE_PASSWORD" => Some(Self::AlternatePassword),
62 _ => None,
63 }
64 }
65}
66#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
67#[repr(i32)]
68pub enum BwStatus {
69 Good = 0,
70 Changed = 1,
71 Weak = 2,
72 Breached = 3,
73 Ignore = 4,
74}
75impl BwStatus {
76 pub fn as_str_name(&self) -> &'static str {
81 match self {
82 Self::Good => "GOOD",
83 Self::Changed => "CHANGED",
84 Self::Weak => "WEAK",
85 Self::Breached => "BREACHED",
86 Self::Ignore => "IGNORE",
87 }
88 }
89 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
91 match value {
92 "GOOD" => Some(Self::Good),
93 "CHANGED" => Some(Self::Changed),
94 "WEAK" => Some(Self::Weak),
95 "BREACHED" => Some(Self::Breached),
96 "IGNORE" => Some(Self::Ignore),
97 _ => None,
98 }
99 }
100}