tomba/
finder.rs

1//   Copyright 2021 Tomba technology web service LLC
2//
3//   Licensed under the Apache License, Version 2.0 (the "License");
4//   you may not use this file except in compliance with the License.
5//   You may obtain a copy of the License at
6//
7//       http://www.apache.org/licenses/LICENSE-2.0
8//
9//   Unless required by applicable law or agreed to in writing, software
10//   distributed under the License is distributed on an "AS IS" BASIS,
11//   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12//   See the License for the specific language governing permissions and
13//   limitations under the License.
14
15//! Tomba Email Finder data structures.
16
17use serde::{Deserialize, Serialize};
18
19#[derive(Serialize, Deserialize)]
20pub struct Finder {
21    #[serde(rename = "data")]
22    pub data: FinderData,
23}
24
25#[derive(Serialize, Deserialize)]
26pub struct FinderData {
27    #[serde(rename = "email")]
28    pub email: String,
29
30    #[serde(rename = "first_name")]
31    pub first_name: String,
32
33    #[serde(rename = "last_name")]
34    pub last_name: String,
35
36    #[serde(rename = "full_name")]
37    pub full_name: String,
38
39    #[serde(rename = "country")]
40    pub country: String,
41
42    #[serde(rename = "position")]
43    pub position: Option<serde_json::Value>,
44
45    #[serde(rename = "twitter")]
46    pub twitter: Option<serde_json::Value>,
47
48    #[serde(rename = "linkedin")]
49    pub linkedin: String,
50
51    #[serde(rename = "phone_number")]
52    pub phone_number: Option<serde_json::Value>,
53
54    #[serde(rename = "accept_all")]
55    pub accept_all: Option<serde_json::Value>,
56
57    #[serde(rename = "website_url")]
58    pub website_url: String,
59
60    #[serde(rename = "company")]
61    pub company: String,
62
63    #[serde(rename = "score")]
64    pub score: i64,
65
66    #[serde(rename = "verification")]
67    pub verification: FinderVerification,
68
69    #[serde(rename = "sources")]
70    pub sources: Vec<Option<serde_json::Value>>,
71}
72
73#[derive(Serialize, Deserialize)]
74pub struct FinderVerification {
75    #[serde(rename = "date")]
76    pub date: Option<serde_json::Value>,
77
78    #[serde(rename = "status")]
79    pub status: Option<serde_json::Value>,
80}