Skip to main content

OwnershipBuilder

Struct OwnershipBuilder 

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

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

Implementations§

Source§

impl<S: State> OwnershipBuilder<S>

Source

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

Finish building and return the requested object

Source

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

Required.

Source

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

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

Source

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

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

Source

pub fn aleph_url( self, value: impl Into<String>, ) -> OwnershipBuilder<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>>, ) -> OwnershipBuilder<SetAlephUrl<S>>
where S::AlephUrl: IsUnset,

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

Source

pub fn asset(self, value: impl Into<String>) -> OwnershipBuilder<SetAsset<S>>
where S::Asset: IsUnset,

Required.

Property: Asset

Source

pub fn date(self, value: impl Into<String>) -> OwnershipBuilder<SetDate<S>>
where S::Date: IsUnset,

Optional (Some / Option setters). Property: Date

Source

pub fn maybe_date( self, value: Option<impl Into<String>>, ) -> OwnershipBuilder<SetDate<S>>
where S::Date: IsUnset,

Optional (Some / Option setters). Property: Date

Source

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

Optional (Some / Option setters). Property: Description

Source

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

Optional (Some / Option setters). Property: Description

Source

pub fn end_date( self, value: impl Into<String>, ) -> OwnershipBuilder<SetEndDate<S>>
where S::EndDate: IsUnset,

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

Source

pub fn maybe_end_date( self, value: Option<impl Into<String>>, ) -> OwnershipBuilder<SetEndDate<S>>
where S::EndDate: IsUnset,

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

Source

pub fn index_text( self, value: impl Into<String>, ) -> OwnershipBuilder<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>>, ) -> OwnershipBuilder<SetIndexText<S>>
where S::IndexText: IsUnset,

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

Source

pub fn legal_basis( self, value: impl Into<String>, ) -> OwnershipBuilder<SetLegalBasis<S>>
where S::LegalBasis: IsUnset,

Optional (Some / Option setters). Property: Legal basis

Optional (Some / Option setters). Property: Legal basis

Source

pub fn modified_at( self, value: impl Into<String>, ) -> OwnershipBuilder<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>>, ) -> OwnershipBuilder<SetModifiedAt<S>>
where S::ModifiedAt: IsUnset,

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

Source

pub fn names_mentioned( self, value: impl Into<String>, ) -> OwnershipBuilder<SetNamesMentioned<S>>
where S::NamesMentioned: IsUnset,

Optional (Some / Option setters). Property: Detected names

Source

pub fn maybe_names_mentioned( self, value: Option<impl Into<String>>, ) -> OwnershipBuilder<SetNamesMentioned<S>>
where S::NamesMentioned: IsUnset,

Optional (Some / Option setters). Property: Detected names

Source

pub fn owner(self, value: impl Into<String>) -> OwnershipBuilder<SetOwner<S>>
where S::Owner: IsUnset,

Required.

Property: Owner

Source

pub fn ownership_type( self, value: impl Into<String>, ) -> OwnershipBuilder<SetOwnershipType<S>>
where S::OwnershipType: IsUnset,

Optional (Some / Option setters). Property: Type of ownership

Source

pub fn maybe_ownership_type( self, value: Option<impl Into<String>>, ) -> OwnershipBuilder<SetOwnershipType<S>>
where S::OwnershipType: IsUnset,

Optional (Some / Option setters). Property: Type of ownership

Source

pub fn percentage( self, value: impl Into<String>, ) -> OwnershipBuilder<SetPercentage<S>>
where S::Percentage: IsUnset,

Optional (Some / Option setters). Property: Percentage held

Source

pub fn maybe_percentage( self, value: Option<impl Into<String>>, ) -> OwnershipBuilder<SetPercentage<S>>
where S::Percentage: IsUnset,

Optional (Some / Option setters). Property: Percentage held

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

pub fn publisher_url( self, value: impl Into<String>, ) -> OwnershipBuilder<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>>, ) -> OwnershipBuilder<SetPublisherUrl<S>>
where S::PublisherUrl: IsUnset,

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

Source

pub fn record_id( self, value: impl Into<String>, ) -> OwnershipBuilder<SetRecordId<S>>
where S::RecordId: IsUnset,

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

Source

pub fn maybe_record_id( self, value: Option<impl Into<String>>, ) -> OwnershipBuilder<SetRecordId<S>>
where S::RecordId: IsUnset,

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

Source

pub fn retrieved_at( self, value: impl Into<String>, ) -> OwnershipBuilder<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>>, ) -> OwnershipBuilder<SetRetrievedAt<S>>
where S::RetrievedAt: IsUnset,

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

Source

pub fn role(self, value: impl Into<String>) -> OwnershipBuilder<SetRole<S>>
where S::Role: IsUnset,

Optional (Some / Option setters). Property: Role

Source

pub fn maybe_role( self, value: Option<impl Into<String>>, ) -> OwnershipBuilder<SetRole<S>>
where S::Role: IsUnset,

Optional (Some / Option setters). Property: Role

Source

pub fn shares_count( self, value: impl Into<String>, ) -> OwnershipBuilder<SetSharesCount<S>>
where S::SharesCount: IsUnset,

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

Source

pub fn maybe_shares_count( self, value: Option<impl Into<String>>, ) -> OwnershipBuilder<SetSharesCount<S>>
where S::SharesCount: IsUnset,

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

Source

pub fn shares_currency( self, value: impl Into<String>, ) -> OwnershipBuilder<SetSharesCurrency<S>>
where S::SharesCurrency: IsUnset,

Optional (Some / Option setters). Property: Currency of shares

Source

pub fn maybe_shares_currency( self, value: Option<impl Into<String>>, ) -> OwnershipBuilder<SetSharesCurrency<S>>
where S::SharesCurrency: IsUnset,

Optional (Some / Option setters). Property: Currency of shares

Source

pub fn shares_type( self, value: impl Into<String>, ) -> OwnershipBuilder<SetSharesType<S>>
where S::SharesType: IsUnset,

Optional (Some / Option setters). Property: Type of shares

Source

pub fn maybe_shares_type( self, value: Option<impl Into<String>>, ) -> OwnershipBuilder<SetSharesType<S>>
where S::SharesType: IsUnset,

Optional (Some / Option setters). Property: Type of shares

Source

pub fn shares_value( self, value: impl Into<String>, ) -> OwnershipBuilder<SetSharesValue<S>>
where S::SharesValue: IsUnset,

Optional (Some / Option setters). Property: Value of shares

Source

pub fn maybe_shares_value( self, value: Option<impl Into<String>>, ) -> OwnershipBuilder<SetSharesValue<S>>
where S::SharesValue: IsUnset,

Optional (Some / Option setters). Property: Value of shares

Source

pub fn source_url( self, value: impl Into<String>, ) -> OwnershipBuilder<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>>, ) -> OwnershipBuilder<SetSourceUrl<S>>
where S::SourceUrl: IsUnset,

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

Source

pub fn start_date( self, value: impl Into<String>, ) -> OwnershipBuilder<SetStartDate<S>>
where S::StartDate: IsUnset,

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

Source

pub fn maybe_start_date( self, value: Option<impl Into<String>>, ) -> OwnershipBuilder<SetStartDate<S>>
where S::StartDate: IsUnset,

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

Source

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

Optional (Some / Option setters). Property: Status

Source

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

Optional (Some / Option setters). Property: Status

Source

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

Optional (Some / Option setters). Property: Summary

Source

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

Optional (Some / Option setters). Property: Summary

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