Skip to main content

LicenseBuilder

Struct LicenseBuilder 

Source
pub struct LicenseBuilder<S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build().

Implementations§

Source§

impl<S: State> LicenseBuilder<S>

Source

pub fn build(self) -> License
where S: IsComplete,

Finish building and return the requested object

Source

pub fn id(self, value: String) -> LicenseBuilder<SetId<S>>
where S::Id: IsUnset,

Required.

Source

pub fn schema(self, value: String) -> LicenseBuilder<SetSchema<S>>
where S::Schema: IsUnset,

Optional (Some / Option setters). Default: "License".to_string().

Source

pub fn maybe_schema(self, value: Option<String>) -> LicenseBuilder<SetSchema<S>>
where S::Schema: IsUnset,

Optional (Some / Option setters). Default: "License".to_string().

Source

pub fn address(self, value: impl Into<String>) -> LicenseBuilder<SetAddress<S>>
where S::Address: IsUnset,

Optional (Some / Option setters). Property: Address

Source

pub fn maybe_address( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetAddress<S>>
where S::Address: IsUnset,

Optional (Some / Option setters). Property: Address

Source

pub fn address_entity( self, value: impl Into<String>, ) -> LicenseBuilder<SetAddressEntity<S>>
where S::AddressEntity: IsUnset,

Optional (Some / Option setters). Property: Address

Source

pub fn maybe_address_entity( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetAddressEntity<S>>
where S::AddressEntity: IsUnset,

Optional (Some / Option setters). Property: Address

Source

pub fn aleph_url( self, value: impl Into<String>, ) -> LicenseBuilder<SetAlephUrl<S>>
where S::AlephUrl: IsUnset,

Optional (Some / Option setters). Property: Aleph URL

Source

pub fn maybe_aleph_url( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetAlephUrl<S>>
where S::AlephUrl: IsUnset,

Optional (Some / Option setters). Property: Aleph URL

Source

pub fn alias(self, value: impl Into<String>) -> LicenseBuilder<SetAlias<S>>
where S::Alias: IsUnset,

Optional (Some / Option setters). Property: Alias

Source

pub fn maybe_alias( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetAlias<S>>
where S::Alias: IsUnset,

Optional (Some / Option setters). Property: Alias

Source

pub fn amount(self, value: f64) -> LicenseBuilder<SetAmount<S>>
where S::Amount: IsUnset,

Optional (Some / Option setters). Property: Amount

Source

pub fn maybe_amount(self, value: Option<f64>) -> LicenseBuilder<SetAmount<S>>
where S::Amount: IsUnset,

Optional (Some / Option setters). Property: Amount

Source

pub fn amount_eur(self, value: f64) -> LicenseBuilder<SetAmountEur<S>>
where S::AmountEur: IsUnset,

Optional (Some / Option setters). Property: Amount in EUR

Source

pub fn maybe_amount_eur( self, value: Option<f64>, ) -> LicenseBuilder<SetAmountEur<S>>
where S::AmountEur: IsUnset,

Optional (Some / Option setters). Property: Amount in EUR

Source

pub fn amount_usd(self, value: f64) -> LicenseBuilder<SetAmountUsd<S>>
where S::AmountUsd: IsUnset,

Optional (Some / Option setters). Property: Amount in USD

Source

pub fn maybe_amount_usd( self, value: Option<f64>, ) -> LicenseBuilder<SetAmountUsd<S>>
where S::AmountUsd: IsUnset,

Optional (Some / Option setters). Property: Amount in USD

Source

pub fn area(self, value: f64) -> LicenseBuilder<SetArea<S>>
where S::Area: IsUnset,

Optional (Some / Option setters). Property: Area

Source

pub fn maybe_area(self, value: Option<f64>) -> LicenseBuilder<SetArea<S>>
where S::Area: IsUnset,

Optional (Some / Option setters). Property: Area

Source

pub fn authority( self, value: impl Into<String>, ) -> LicenseBuilder<SetAuthority<S>>
where S::Authority: IsUnset,

Required.

Property: Contract authority

Source

pub fn cancelled( self, value: impl Into<String>, ) -> LicenseBuilder<SetCancelled<S>>
where S::Cancelled: IsUnset,

Optional (Some / Option setters). Property: Cancelled?

Source

pub fn maybe_cancelled( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetCancelled<S>>
where S::Cancelled: IsUnset,

Optional (Some / Option setters). Property: Cancelled?

Source

pub fn classification( self, value: impl Into<String>, ) -> LicenseBuilder<SetClassification<S>>
where S::Classification: IsUnset,

Optional (Some / Option setters). Property: Classification

Source

pub fn maybe_classification( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetClassification<S>>
where S::Classification: IsUnset,

Optional (Some / Option setters). Property: Classification

Source

pub fn commodities( self, value: impl Into<String>, ) -> LicenseBuilder<SetCommodities<S>>
where S::Commodities: IsUnset,

Optional (Some / Option setters). Property: Commodities

Source

pub fn maybe_commodities( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetCommodities<S>>
where S::Commodities: IsUnset,

Optional (Some / Option setters). Property: Commodities

Source

pub fn contract_date( self, value: impl Into<String>, ) -> LicenseBuilder<SetContractDate<S>>
where S::ContractDate: IsUnset,

Optional (Some / Option setters). Property: Contract date

Source

pub fn maybe_contract_date( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetContractDate<S>>
where S::ContractDate: IsUnset,

Optional (Some / Option setters). Property: Contract date

Source

pub fn country(self, value: impl Into<String>) -> LicenseBuilder<SetCountry<S>>
where S::Country: IsUnset,

Optional (Some / Option setters). Property: Country

Source

pub fn maybe_country( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetCountry<S>>
where S::Country: IsUnset,

Optional (Some / Option setters). Property: Country

Source

pub fn created_at( self, value: impl Into<String>, ) -> LicenseBuilder<SetCreatedAt<S>>
where S::CreatedAt: IsUnset,

Optional (Some / Option setters). Property: Created at

Source

pub fn maybe_created_at( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetCreatedAt<S>>
where S::CreatedAt: IsUnset,

Optional (Some / Option setters). Property: Created at

Source

pub fn criteria( self, value: impl Into<String>, ) -> LicenseBuilder<SetCriteria<S>>
where S::Criteria: IsUnset,

Optional (Some / Option setters). Property: Contract award criteria

Source

pub fn maybe_criteria( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetCriteria<S>>
where S::Criteria: IsUnset,

Optional (Some / Option setters). Property: Contract award criteria

Source

pub fn currency( self, value: impl Into<String>, ) -> LicenseBuilder<SetCurrency<S>>
where S::Currency: IsUnset,

Optional (Some / Option setters). Property: Currency

Source

pub fn maybe_currency( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetCurrency<S>>
where S::Currency: IsUnset,

Optional (Some / Option setters). Property: Currency

Source

pub fn description( self, value: impl Into<String>, ) -> LicenseBuilder<SetDescription<S>>
where S::Description: IsUnset,

Optional (Some / Option setters). Property: Description

Source

pub fn maybe_description( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetDescription<S>>
where S::Description: IsUnset,

Optional (Some / Option setters). Property: Description

Source

pub fn index_text( self, value: impl Into<String>, ) -> LicenseBuilder<SetIndexText<S>>
where S::IndexText: IsUnset,

Optional (Some / Option setters). Property: Index text

Source

pub fn maybe_index_text( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetIndexText<S>>
where S::IndexText: IsUnset,

Optional (Some / Option setters). Property: Index text

Source

pub fn keywords( self, value: impl Into<String>, ) -> LicenseBuilder<SetKeywords<S>>
where S::Keywords: IsUnset,

Optional (Some / Option setters). Property: Keywords

Source

pub fn maybe_keywords( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetKeywords<S>>
where S::Keywords: IsUnset,

Optional (Some / Option setters). Property: Keywords

Source

pub fn language( self, value: impl Into<String>, ) -> LicenseBuilder<SetLanguage<S>>
where S::Language: IsUnset,

Optional (Some / Option setters). Property: Language

Source

pub fn maybe_language( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetLanguage<S>>
where S::Language: IsUnset,

Optional (Some / Option setters). Property: Language

Source

pub fn method(self, value: impl Into<String>) -> LicenseBuilder<SetMethod<S>>
where S::Method: IsUnset,

Optional (Some / Option setters). Property: Procurement method

Source

pub fn maybe_method( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetMethod<S>>
where S::Method: IsUnset,

Optional (Some / Option setters). Property: Procurement method

Source

pub fn modified_at( self, value: impl Into<String>, ) -> LicenseBuilder<SetModifiedAt<S>>
where S::ModifiedAt: IsUnset,

Optional (Some / Option setters). Property: Modified on

Source

pub fn maybe_modified_at( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetModifiedAt<S>>
where S::ModifiedAt: IsUnset,

Optional (Some / Option setters). Property: Modified on

Source

pub fn name(self, value: impl Into<String>) -> LicenseBuilder<SetName<S>>
where S::Name: IsUnset,

Required.

Property: Name

Source

pub fn notes(self, value: impl Into<String>) -> LicenseBuilder<SetNotes<S>>
where S::Notes: IsUnset,

Optional (Some / Option setters). Property: Notes

Source

pub fn maybe_notes( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetNotes<S>>
where S::Notes: IsUnset,

Optional (Some / Option setters). Property: Notes

Source

pub fn notice_id( self, value: impl Into<String>, ) -> LicenseBuilder<SetNoticeId<S>>
where S::NoticeId: IsUnset,

Optional (Some / Option setters). Property: Contract Award Notice ID

Source

pub fn maybe_notice_id( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetNoticeId<S>>
where S::NoticeId: IsUnset,

Optional (Some / Option setters). Property: Contract Award Notice ID

Source

pub fn number_awards( self, value: impl Into<String>, ) -> LicenseBuilder<SetNumberAwards<S>>
where S::NumberAwards: IsUnset,

Optional (Some / Option setters). Property: Number of awards

Source

pub fn maybe_number_awards( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetNumberAwards<S>>
where S::NumberAwards: IsUnset,

Optional (Some / Option setters). Property: Number of awards

Source

pub fn previous_name( self, value: impl Into<String>, ) -> LicenseBuilder<SetPreviousName<S>>
where S::PreviousName: IsUnset,

Optional (Some / Option setters). Property: Previous name

Source

pub fn maybe_previous_name( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetPreviousName<S>>
where S::PreviousName: IsUnset,

Optional (Some / Option setters). Property: Previous name

Source

pub fn procedure( self, value: impl Into<String>, ) -> LicenseBuilder<SetProcedure<S>>
where S::Procedure: IsUnset,

Optional (Some / Option setters). Property: Contract procedure

Source

pub fn maybe_procedure( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetProcedure<S>>
where S::Procedure: IsUnset,

Optional (Some / Option setters). Property: Contract procedure

Source

pub fn procedure_number( self, value: impl Into<String>, ) -> LicenseBuilder<SetProcedureNumber<S>>
where S::ProcedureNumber: IsUnset,

Optional (Some / Option setters). Property: Procedure number

Source

pub fn maybe_procedure_number( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetProcedureNumber<S>>
where S::ProcedureNumber: IsUnset,

Optional (Some / Option setters). Property: Procedure number

Source

pub fn program(self, value: impl Into<String>) -> LicenseBuilder<SetProgram<S>>
where S::Program: IsUnset,

Optional (Some / Option setters). Property: Program

Source

pub fn maybe_program( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetProgram<S>>
where S::Program: IsUnset,

Optional (Some / Option setters). Property: Program

Source

pub fn program_id( self, value: impl Into<String>, ) -> LicenseBuilder<SetProgramId<S>>
where S::ProgramId: IsUnset,

Optional (Some / Option setters). Property: Program ID

Source

pub fn maybe_program_id( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetProgramId<S>>
where S::ProgramId: IsUnset,

Optional (Some / Option setters). Property: Program ID

Source

pub fn project(self, value: impl Into<String>) -> LicenseBuilder<SetProject<S>>
where S::Project: IsUnset,

Optional (Some / Option setters). Property: Project

Source

pub fn maybe_project( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetProject<S>>
where S::Project: IsUnset,

Optional (Some / Option setters). Property: Project

Source

pub fn proof(self, value: impl Into<String>) -> LicenseBuilder<SetProof<S>>
where S::Proof: IsUnset,

Optional (Some / Option setters). Property: Source document

Source

pub fn maybe_proof( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetProof<S>>
where S::Proof: IsUnset,

Optional (Some / Option setters). Property: Source document

Source

pub fn publisher( self, value: impl Into<String>, ) -> LicenseBuilder<SetPublisher<S>>
where S::Publisher: IsUnset,

Optional (Some / Option setters). Property: Publishing source

Source

pub fn maybe_publisher( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetPublisher<S>>
where S::Publisher: IsUnset,

Optional (Some / Option setters). Property: Publishing source

Source

pub fn publisher_url( self, value: impl Into<String>, ) -> LicenseBuilder<SetPublisherUrl<S>>
where S::PublisherUrl: IsUnset,

Optional (Some / Option setters). Property: Publishing source URL

Source

pub fn maybe_publisher_url( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetPublisherUrl<S>>
where S::PublisherUrl: IsUnset,

Optional (Some / Option setters). Property: Publishing source URL

Source

pub fn retrieved_at( self, value: impl Into<String>, ) -> LicenseBuilder<SetRetrievedAt<S>>
where S::RetrievedAt: IsUnset,

Optional (Some / Option setters). Property: Retrieved on

Source

pub fn maybe_retrieved_at( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetRetrievedAt<S>>
where S::RetrievedAt: IsUnset,

Optional (Some / Option setters). Property: Retrieved on

Source

pub fn review_date( self, value: impl Into<String>, ) -> LicenseBuilder<SetReviewDate<S>>
where S::ReviewDate: IsUnset,

Optional (Some / Option setters). Property: License review date

Source

pub fn maybe_review_date( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetReviewDate<S>>
where S::ReviewDate: IsUnset,

Optional (Some / Option setters). Property: License review date

Source

pub fn source_url( self, value: impl Into<String>, ) -> LicenseBuilder<SetSourceUrl<S>>
where S::SourceUrl: IsUnset,

Optional (Some / Option setters). Property: Source link

Source

pub fn maybe_source_url( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetSourceUrl<S>>
where S::SourceUrl: IsUnset,

Optional (Some / Option setters). Property: Source link

Source

pub fn status(self, value: impl Into<String>) -> LicenseBuilder<SetStatus<S>>
where S::Status: IsUnset,

Optional (Some / Option setters). Property: Status

Source

pub fn maybe_status( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetStatus<S>>
where S::Status: IsUnset,

Optional (Some / Option setters). Property: Status

Source

pub fn summary(self, value: impl Into<String>) -> LicenseBuilder<SetSummary<S>>
where S::Summary: IsUnset,

Optional (Some / Option setters). Property: Summary

Source

pub fn maybe_summary( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetSummary<S>>
where S::Summary: IsUnset,

Optional (Some / Option setters). Property: Summary

Source

pub fn title(self, value: impl Into<String>) -> LicenseBuilder<SetTitle<S>>
where S::Title: IsUnset,

Required.

Property: Title

Source

pub fn topics(self, value: impl Into<String>) -> LicenseBuilder<SetTopics<S>>
where S::Topics: IsUnset,

Optional (Some / Option setters). Property: Topics

Source

pub fn maybe_topics( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetTopics<S>>
where S::Topics: IsUnset,

Optional (Some / Option setters). Property: Topics

Source

pub fn type_(self, value: impl Into<String>) -> LicenseBuilder<SetType<S>>
where S::Type: IsUnset,

Optional (Some / Option setters). Property: Type

Source

pub fn maybe_type_( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetType<S>>
where S::Type: IsUnset,

Optional (Some / Option setters). Property: Type

Source

pub fn weak_alias( self, value: impl Into<String>, ) -> LicenseBuilder<SetWeakAlias<S>>
where S::WeakAlias: IsUnset,

Optional (Some / Option setters). Property: Weak alias

Source

pub fn maybe_weak_alias( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetWeakAlias<S>>
where S::WeakAlias: IsUnset,

Optional (Some / Option setters). Property: Weak alias

Source

pub fn wikidata_id( self, value: impl Into<String>, ) -> LicenseBuilder<SetWikidataId<S>>
where S::WikidataId: IsUnset,

Optional (Some / Option setters). Property: Wikidata ID

Source

pub fn maybe_wikidata_id( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetWikidataId<S>>
where S::WikidataId: IsUnset,

Optional (Some / Option setters). Property: Wikidata ID

Source

pub fn wikipedia_url( self, value: impl Into<String>, ) -> LicenseBuilder<SetWikipediaUrl<S>>
where S::WikipediaUrl: IsUnset,

Optional (Some / Option setters). Property: Wikipedia Article

Source

pub fn maybe_wikipedia_url( self, value: Option<impl Into<String>>, ) -> LicenseBuilder<SetWikipediaUrl<S>>
where S::WikipediaUrl: IsUnset,

Optional (Some / Option setters). Property: Wikipedia Article

Auto Trait Implementations§

§

impl<S> Freeze for LicenseBuilder<S>

§

impl<S> RefUnwindSafe for LicenseBuilder<S>

§

impl<S> Send for LicenseBuilder<S>

§

impl<S> Sync for LicenseBuilder<S>

§

impl<S> Unpin for LicenseBuilder<S>

§

impl<S> UnsafeUnpin for LicenseBuilder<S>

§

impl<S> UnwindSafe for LicenseBuilder<S>

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> 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, 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.