pub struct Address {Show 40 fields
pub id: String,
pub schema: String,
pub address: Option<Vec<String>>,
pub address_entity: Option<Vec<String>>,
pub aleph_url: Option<Vec<String>>,
pub alias: Option<Vec<String>>,
pub city: Option<Vec<String>>,
pub country: Option<Vec<String>>,
pub created_at: Option<Vec<String>>,
pub description: Option<Vec<String>>,
pub full: Option<Vec<String>>,
pub google_place_id: Option<Vec<String>>,
pub index_text: Option<Vec<String>>,
pub keywords: Option<Vec<String>>,
pub latitude: Option<Vec<f64>>,
pub longitude: Option<Vec<f64>>,
pub modified_at: Option<Vec<String>>,
pub name: Vec<String>,
pub notes: Option<Vec<String>>,
pub osm_id: Option<Vec<String>>,
pub post_office_box: Option<Vec<String>>,
pub postal_code: Option<Vec<String>>,
pub previous_name: Option<Vec<String>>,
pub program: Option<Vec<String>>,
pub program_id: Option<Vec<String>>,
pub proof: Option<Vec<String>>,
pub publisher: Option<Vec<String>>,
pub publisher_url: Option<Vec<String>>,
pub region: Option<Vec<String>>,
pub remarks: Option<Vec<String>>,
pub retrieved_at: Option<Vec<String>>,
pub source_url: Option<Vec<String>>,
pub state: Option<Vec<String>>,
pub street: Option<Vec<String>>,
pub street2: Option<Vec<String>>,
pub summary: Option<Vec<String>>,
pub topics: Option<Vec<String>>,
pub weak_alias: Option<Vec<String>>,
pub wikidata_id: Option<Vec<String>>,
pub wikipedia_url: Option<Vec<String>>,
}Expand description
FTM Schema: Address
Fields§
§id: String§schema: String§address: Option<Vec<String>>Property: Address
address_entity: Option<Vec<String>>Property: Address
aleph_url: Option<Vec<String>>Property: Aleph URL
alias: Option<Vec<String>>Property: Alias
city: Option<Vec<String>>Property: City
country: Option<Vec<String>>Property: Country
created_at: Option<Vec<String>>Property: Created at
description: Option<Vec<String>>Property: Description
full: Option<Vec<String>>Property: Full address
google_place_id: Option<Vec<String>>Property: Google Places ID
index_text: Option<Vec<String>>Property: Index text
keywords: Option<Vec<String>>Property: Keywords
latitude: Option<Vec<f64>>Property: Latitude
longitude: Option<Vec<f64>>Property: Longitude
modified_at: Option<Vec<String>>Property: Modified on
name: Vec<String>Property: Name
notes: Option<Vec<String>>Property: Notes
osm_id: Option<Vec<String>>Property: OpenStreetmap Place ID
post_office_box: Option<Vec<String>>Property: PO Box
postal_code: Option<Vec<String>>Property: Postal code
previous_name: Option<Vec<String>>Property: Previous name
program: Option<Vec<String>>Property: Program
program_id: Option<Vec<String>>Property: Program ID
proof: Option<Vec<String>>Property: Source document
publisher: Option<Vec<String>>Property: Publishing source
publisher_url: Option<Vec<String>>Property: Publishing source URL
region: Option<Vec<String>>Property: Region
remarks: Option<Vec<String>>Property: Remarks
retrieved_at: Option<Vec<String>>Property: Retrieved on
source_url: Option<Vec<String>>Property: Source link
state: Option<Vec<String>>Property: State
street: Option<Vec<String>>Property: Street address
street2: Option<Vec<String>>Property: Street address (ctd.)
summary: Option<Vec<String>>Property: Summary
topics: Option<Vec<String>>Property: Topics
weak_alias: Option<Vec<String>>Property: Weak alias
wikidata_id: Option<Vec<String>>Property: Wikidata ID
wikipedia_url: Option<Vec<String>>Property: Wikipedia Article
Implementations§
Source§impl Address
impl Address
Sourcepub fn builder() -> AddressBuilder
pub fn builder() -> AddressBuilder
Create an instance of Address using the builder syntax
Source§impl Address
impl Address
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
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": {...}}