Skip to main content

ContractAward

Struct ContractAward 

Source
pub struct ContractAward {
Show 33 fields pub id: String, pub schema: String, pub aleph_url: Option<Vec<String>>, pub amended: Option<Vec<String>>, pub amount: Option<Vec<f64>>, pub amount_eur: Option<Vec<f64>>, pub amount_usd: Option<Vec<f64>>, pub call_for_tenders: Option<Vec<String>>, pub contract: Vec<String>, pub cpv_code: Option<Vec<String>>, pub currency: Option<Vec<String>>, pub date: Option<Vec<String>>, pub decision_reason: Option<Vec<String>>, pub description: Option<Vec<String>>, pub document_number: Option<Vec<String>>, pub document_type: Option<Vec<String>>, pub end_date: Option<Vec<String>>, pub index_text: Option<Vec<String>>, pub lot_number: Option<Vec<String>>, pub modified_at: Option<Vec<String>>, pub names_mentioned: Option<Vec<String>>, pub nuts_code: 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 role: Option<Vec<String>>, pub source_url: Option<Vec<String>>, pub start_date: Option<Vec<String>>, pub status: Option<Vec<String>>, pub summary: Option<Vec<String>>, pub supplier: Vec<String>,
}
Expand description

FTM Schema: Contract award

Fields§

§id: String§schema: String§aleph_url: Option<Vec<String>>

Property: Aleph URL

§amended: Option<Vec<String>>

Property: Amended

§amount: Option<Vec<f64>>

Property: Amount

§amount_eur: Option<Vec<f64>>

Property: Amount in EUR

§amount_usd: Option<Vec<f64>>

Property: Amount in USD

§call_for_tenders: Option<Vec<String>>

Property: Call For Tenders

§contract: Vec<String>

Property: Contract

§cpv_code: Option<Vec<String>>

Property: CPV code

§currency: Option<Vec<String>>

Property: Currency

§date: Option<Vec<String>>

Property: Date

§decision_reason: Option<Vec<String>>

Property: Decision reason

§description: Option<Vec<String>>

Property: Description

§document_number: Option<Vec<String>>

Property: Document number

§document_type: Option<Vec<String>>

Property: Document type

§end_date: Option<Vec<String>>

Property: End date

§index_text: Option<Vec<String>>

Property: Index text

§lot_number: Option<Vec<String>>

Property: Lot number

§modified_at: Option<Vec<String>>

Property: Modified on

§names_mentioned: Option<Vec<String>>

Property: Detected names

§nuts_code: Option<Vec<String>>

Property: NUTS code

§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

§role: Option<Vec<String>>

Property: Role

§source_url: Option<Vec<String>>

Property: Source link

§start_date: Option<Vec<String>>

Property: Start date

§status: Option<Vec<String>>

Property: Status

§summary: Option<Vec<String>>

Property: Summary

§supplier: Vec<String>

Property: Supplier

Implementations§

Source§

impl ContractAward

Source

pub fn builder() -> ContractAwardBuilder

Create an instance of ContractAward using the builder syntax

Source§

impl ContractAward

Source

pub fn new(id: impl Into<String>) -> Self

👎Deprecated: Use the builder() method instead to ensure required fields are set

Create a new entity with the given ID

Source

pub fn schema_name() -> &'static str

Get the schema name

Source

pub fn to_ftm_json(&self) -> Result<String, Error>

Serialize to standard FTM nested JSON format

Produces {"id": "...", "schema": "...", "properties": {...}}

Trait Implementations§

Source§

impl Clone for ContractAward

Source§

fn clone(&self) -> ContractAward

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ContractAward

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ContractAward

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<ContractAward> for FtmEntity

Source§

fn from(entity: ContractAward) -> Self

Converts to this type from the input type.
Source§

impl Interest for ContractAward

Source§

fn id(&self) -> &str

Get the entity ID
Source§

fn schema(&self) -> &str

Get the schema name
Source§

fn role(&self) -> Option<&[String]>

Get Role property
Source§

fn status(&self) -> Option<&[String]>

Get Status property
Source§

impl Interval for ContractAward

Source§

fn id(&self) -> &str

Get the entity ID
Source§

fn schema(&self) -> &str

Get the schema name
Source§

fn aleph_url(&self) -> Option<&[String]>

Get Aleph URL property
Source§

fn date(&self) -> Option<&[String]>

Get Date property
Source§

fn description(&self) -> Option<&[String]>

Get Description property
Source§

fn end_date(&self) -> Option<&[String]>

Get End date property
Source§

fn index_text(&self) -> Option<&[String]>

Get Index text property
Source§

fn modified_at(&self) -> Option<&[String]>

Get Modified on property
Source§

fn names_mentioned(&self) -> Option<&[String]>

Get Detected names property
Source§

fn proof(&self) -> Option<&[String]>

Get Source document property
Source§

fn publisher(&self) -> Option<&[String]>

Get Publishing source property
Source§

fn publisher_url(&self) -> Option<&[String]>

Get Publishing source URL property
Source§

fn record_id(&self) -> Option<&[String]>

Get Record ID property
Source§

fn retrieved_at(&self) -> Option<&[String]>

Get Retrieved on property
Source§

fn source_url(&self) -> Option<&[String]>

Get Source link property
Source§

fn start_date(&self) -> Option<&[String]>

Get Start date property
Source§

fn summary(&self) -> Option<&[String]>

Get Summary property
Source§

impl Serialize for ContractAward

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Value for ContractAward

Source§

fn id(&self) -> &str

Get the entity ID
Source§

fn schema(&self) -> &str

Get the schema name
Source§

fn amount(&self) -> Option<&[f64]>

Get Amount property
Source§

fn amount_eur(&self) -> Option<&[f64]>

Get Amount in EUR property
Source§

fn amount_usd(&self) -> Option<&[f64]>

Get Amount in USD property
Source§

fn currency(&self) -> Option<&[String]>

Get Currency property

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,