pub struct Passport {Show 29 fields
pub id: String,
pub schema: String,
pub aleph_url: Option<Vec<String>>,
pub authority: Option<Vec<String>>,
pub birth_date: Option<Vec<String>>,
pub birth_place: Option<Vec<String>>,
pub country: Option<Vec<String>>,
pub date: Option<Vec<String>>,
pub description: Option<Vec<String>>,
pub end_date: Option<Vec<String>>,
pub gender: Option<Vec<String>>,
pub given_name: Option<Vec<String>>,
pub holder: Vec<String>,
pub index_text: Option<Vec<String>>,
pub modified_at: Option<Vec<String>>,
pub names_mentioned: Option<Vec<String>>,
pub number: Vec<String>,
pub passport_number: Option<Vec<String>>,
pub personal_number: Option<Vec<String>>,
pub proof: Option<Vec<String>>,
pub publisher: Option<Vec<String>>,
pub publisher_url: Option<Vec<String>>,
pub record_id: Option<Vec<String>>,
pub retrieved_at: Option<Vec<String>>,
pub source_url: Option<Vec<String>>,
pub start_date: Option<Vec<String>>,
pub summary: Option<Vec<String>>,
pub surname: Option<Vec<String>>,
pub type_: Option<Vec<String>>,
}Expand description
FTM Schema: Passport
Fields§
§id: String§schema: String§aleph_url: Option<Vec<String>>Property: Aleph URL
Property: Authority
birth_date: Option<Vec<String>>Property: Birth date
birth_place: Option<Vec<String>>Property: Place of birth
country: Option<Vec<String>>Property: Country
date: Option<Vec<String>>Property: Date
description: Option<Vec<String>>Property: Description
end_date: Option<Vec<String>>Property: End date
gender: Option<Vec<String>>Property: Gender
given_name: Option<Vec<String>>Property: Given name
holder: Vec<String>Property: Identification holder
index_text: Option<Vec<String>>Property: Index text
modified_at: Option<Vec<String>>Property: Modified on
names_mentioned: Option<Vec<String>>Property: Detected names
number: Vec<String>Property: Document number
passport_number: Option<Vec<String>>Property: Passport number
personal_number: Option<Vec<String>>Property: Personal number
proof: Option<Vec<String>>Property: Source document
publisher: Option<Vec<String>>Property: Publishing source
publisher_url: Option<Vec<String>>Property: Publishing source URL
record_id: Option<Vec<String>>Property: Record ID
retrieved_at: Option<Vec<String>>Property: Retrieved on
source_url: Option<Vec<String>>Property: Source link
start_date: Option<Vec<String>>Property: Start date
summary: Option<Vec<String>>Property: Summary
surname: Option<Vec<String>>Property: Surname
type_: Option<Vec<String>>Property: Type
Implementations§
Source§impl Passport
impl Passport
Sourcepub fn builder() -> PassportBuilder
pub fn builder() -> PassportBuilder
Create an instance of Passport using the builder syntax
Source§impl Passport
impl Passport
Sourcepub fn new(id: impl Into<String>) -> Self
👎Deprecated: Use the builder() method instead to ensure required fields are set
pub fn new(id: impl Into<String>) -> Self
Use the builder() method instead to ensure required fields are set
Create a new entity with the given ID
Sourcepub fn schema_name() -> &'static str
pub fn schema_name() -> &'static str
Get the schema name
Sourcepub fn to_ftm_json(&self) -> Result<String, Error>
pub fn to_ftm_json(&self) -> Result<String, Error>
Serialize to standard FTM nested JSON format
Produces {"id": "...", "schema": "...", "properties": {...}}