Skip to main content

NoteBuilder

Struct NoteBuilder 

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

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

Implementations§

Source§

impl<S: State> NoteBuilder<S>

Source

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

Finish building and return the requested object

Source

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

Required.

Source

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

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

Source

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

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

Source

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

Optional (Some / Option setters). Property: Address

Source

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

Optional (Some / Option setters). Property: Address

Source

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

Optional (Some / Option setters). Property: Address

Source

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

Optional (Some / Option setters). Property: Address

Source

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

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

Source

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

Optional (Some / Option setters). Property: Alias

Source

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

Optional (Some / Option setters). Property: Alias

Source

pub fn companies_mentioned( self, value: impl Into<String>, ) -> NoteBuilder<SetCompaniesMentioned<S>>
where S::CompaniesMentioned: IsUnset,

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

Source

pub fn maybe_companies_mentioned( self, value: Option<impl Into<String>>, ) -> NoteBuilder<SetCompaniesMentioned<S>>
where S::CompaniesMentioned: IsUnset,

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

Source

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

Optional (Some / Option setters). Property: Country

Source

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

Optional (Some / Option setters). Property: Country

Source

pub fn created_at( self, value: impl Into<String>, ) -> NoteBuilder<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>>, ) -> NoteBuilder<SetCreatedAt<S>>
where S::CreatedAt: IsUnset,

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

Source

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

Optional (Some / Option setters). Property: Description

Source

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

Optional (Some / Option setters). Property: Description

Source

pub fn detected_country( self, value: impl Into<String>, ) -> NoteBuilder<SetDetectedCountry<S>>
where S::DetectedCountry: IsUnset,

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

Source

pub fn maybe_detected_country( self, value: Option<impl Into<String>>, ) -> NoteBuilder<SetDetectedCountry<S>>
where S::DetectedCountry: IsUnset,

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

Source

pub fn detected_language( self, value: impl Into<String>, ) -> NoteBuilder<SetDetectedLanguage<S>>
where S::DetectedLanguage: IsUnset,

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

Source

pub fn maybe_detected_language( self, value: Option<impl Into<String>>, ) -> NoteBuilder<SetDetectedLanguage<S>>
where S::DetectedLanguage: IsUnset,

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

Source

pub fn email_mentioned( self, value: impl Into<String>, ) -> NoteBuilder<SetEmailMentioned<S>>
where S::EmailMentioned: IsUnset,

Optional (Some / Option setters). Property: Detected e-mail addresses

Source

pub fn maybe_email_mentioned( self, value: Option<impl Into<String>>, ) -> NoteBuilder<SetEmailMentioned<S>>
where S::EmailMentioned: IsUnset,

Optional (Some / Option setters). Property: Detected e-mail addresses

Source

pub fn entity(self, value: impl Into<String>) -> NoteBuilder<SetEntity<S>>
where S::Entity: IsUnset,

Optional (Some / Option setters). Property: Entity

Source

pub fn maybe_entity( self, value: Option<impl Into<String>>, ) -> NoteBuilder<SetEntity<S>>
where S::Entity: IsUnset,

Optional (Some / Option setters). Property: Entity

Source

pub fn iban_mentioned( self, value: impl Into<String>, ) -> NoteBuilder<SetIbanMentioned<S>>
where S::IbanMentioned: IsUnset,

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

Source

pub fn maybe_iban_mentioned( self, value: Option<impl Into<String>>, ) -> NoteBuilder<SetIbanMentioned<S>>
where S::IbanMentioned: IsUnset,

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

Source

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

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

Source

pub fn ip_mentioned( self, value: impl Into<String>, ) -> NoteBuilder<SetIpMentioned<S>>
where S::IpMentioned: IsUnset,

Optional (Some / Option setters). Property: Detected IP addresses

Source

pub fn maybe_ip_mentioned( self, value: Option<impl Into<String>>, ) -> NoteBuilder<SetIpMentioned<S>>
where S::IpMentioned: IsUnset,

Optional (Some / Option setters). Property: Detected IP addresses

Source

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

Optional (Some / Option setters). Property: Keywords

Source

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

Optional (Some / Option setters). Property: Keywords

Source

pub fn location_mentioned( self, value: impl Into<String>, ) -> NoteBuilder<SetLocationMentioned<S>>
where S::LocationMentioned: IsUnset,

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

Source

pub fn maybe_location_mentioned( self, value: Option<impl Into<String>>, ) -> NoteBuilder<SetLocationMentioned<S>>
where S::LocationMentioned: IsUnset,

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

Source

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

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

Source

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

Required.

Property: Name

Source

pub fn names_mentioned( self, value: impl Into<String>, ) -> NoteBuilder<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>>, ) -> NoteBuilder<SetNamesMentioned<S>>
where S::NamesMentioned: IsUnset,

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

Source

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

Optional (Some / Option setters). Property: Notes

Source

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

Optional (Some / Option setters). Property: Notes

Source

pub fn people_mentioned( self, value: impl Into<String>, ) -> NoteBuilder<SetPeopleMentioned<S>>
where S::PeopleMentioned: IsUnset,

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

Source

pub fn maybe_people_mentioned( self, value: Option<impl Into<String>>, ) -> NoteBuilder<SetPeopleMentioned<S>>
where S::PeopleMentioned: IsUnset,

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

Source

pub fn phone_mentioned( self, value: impl Into<String>, ) -> NoteBuilder<SetPhoneMentioned<S>>
where S::PhoneMentioned: IsUnset,

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

Source

pub fn maybe_phone_mentioned( self, value: Option<impl Into<String>>, ) -> NoteBuilder<SetPhoneMentioned<S>>
where S::PhoneMentioned: IsUnset,

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

Source

pub fn previous_name( self, value: impl Into<String>, ) -> NoteBuilder<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>>, ) -> NoteBuilder<SetPreviousName<S>>
where S::PreviousName: IsUnset,

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

Source

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

Optional (Some / Option setters). Property: Program

Source

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

Optional (Some / Option setters). Property: Program

Source

pub fn program_id( self, value: impl Into<String>, ) -> NoteBuilder<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>>, ) -> NoteBuilder<SetProgramId<S>>
where S::ProgramId: IsUnset,

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

Optional (Some / Option setters). Property: Summary

Source

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

Optional (Some / Option setters). Property: Summary

Source

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

Optional (Some / Option setters). Property: Topics

Source

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

Optional (Some / Option setters). Property: Topics

Source

pub fn weak_alias( self, value: impl Into<String>, ) -> NoteBuilder<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>>, ) -> NoteBuilder<SetWeakAlias<S>>
where S::WeakAlias: IsUnset,

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

Source

pub fn wikidata_id( self, value: impl Into<String>, ) -> NoteBuilder<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>>, ) -> NoteBuilder<SetWikidataId<S>>
where S::WikidataId: IsUnset,

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

Source

pub fn wikipedia_url( self, value: impl Into<String>, ) -> NoteBuilder<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>>, ) -> NoteBuilder<SetWikipediaUrl<S>>
where S::WikipediaUrl: IsUnset,

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

Auto Trait Implementations§

§

impl<S> Freeze for NoteBuilder<S>

§

impl<S> RefUnwindSafe for NoteBuilder<S>

§

impl<S> Send for NoteBuilder<S>

§

impl<S> Sync for NoteBuilder<S>

§

impl<S> Unpin for NoteBuilder<S>

§

impl<S> UnsafeUnpin for NoteBuilder<S>

§

impl<S> UnwindSafe for NoteBuilder<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.