Skip to main content

MessageBuilder

Struct MessageBuilder 

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

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

Implementations§

Source§

impl<S: State> MessageBuilder<S>

Source

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

Finish building and return the requested object

Source

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

Required.

Source

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

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

Source

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

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

Source

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

Optional (Some / Option setters). Property: Address

Source

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

Optional (Some / Option setters). Property: Address

Source

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

Optional (Some / Option setters). Property: Address

Source

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

Optional (Some / Option setters). Property: Address

Source

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

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

Source

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

Optional (Some / Option setters). Property: Alias

Source

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

Optional (Some / Option setters). Property: Alias

Source

pub fn ancestors( self, value: impl Into<String>, ) -> MessageBuilder<SetAncestors<S>>
where S::Ancestors: IsUnset,

Optional (Some / Option setters). Property: Ancestors

Source

pub fn maybe_ancestors( self, value: Option<impl Into<String>>, ) -> MessageBuilder<SetAncestors<S>>
where S::Ancestors: IsUnset,

Optional (Some / Option setters). Property: Ancestors

Source

pub fn author(self, value: impl Into<String>) -> MessageBuilder<SetAuthor<S>>
where S::Author: IsUnset,

Optional (Some / Option setters). Property: Author

Source

pub fn maybe_author( self, value: Option<impl Into<String>>, ) -> MessageBuilder<SetAuthor<S>>
where S::Author: IsUnset,

Optional (Some / Option setters). Property: Author

Source

pub fn authored_at( self, value: impl Into<String>, ) -> MessageBuilder<SetAuthoredAt<S>>
where S::AuthoredAt: IsUnset,

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

Source

pub fn maybe_authored_at( self, value: Option<impl Into<String>>, ) -> MessageBuilder<SetAuthoredAt<S>>
where S::AuthoredAt: IsUnset,

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

Source

pub fn body_html( self, value: impl Into<String>, ) -> MessageBuilder<SetBodyHtml<S>>
where S::BodyHtml: IsUnset,

Optional (Some / Option setters). Property: HTML

Source

pub fn maybe_body_html( self, value: Option<impl Into<String>>, ) -> MessageBuilder<SetBodyHtml<S>>
where S::BodyHtml: IsUnset,

Optional (Some / Option setters). Property: HTML

Source

pub fn body_text( self, value: impl Into<String>, ) -> MessageBuilder<SetBodyText<S>>
where S::BodyText: IsUnset,

Required.

Property: Text

Source

pub fn companies_mentioned( self, value: impl Into<String>, ) -> MessageBuilder<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>>, ) -> MessageBuilder<SetCompaniesMentioned<S>>
where S::CompaniesMentioned: IsUnset,

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

Source

pub fn content_hash( self, value: impl Into<String>, ) -> MessageBuilder<SetContentHash<S>>
where S::ContentHash: IsUnset,

Optional (Some / Option setters). Property: Checksum

Source

pub fn maybe_content_hash( self, value: Option<impl Into<String>>, ) -> MessageBuilder<SetContentHash<S>>
where S::ContentHash: IsUnset,

Optional (Some / Option setters). Property: Checksum

Source

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

Optional (Some / Option setters). Property: Country

Source

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

Optional (Some / Option setters). Property: Country

Source

pub fn crawler(self, value: impl Into<String>) -> MessageBuilder<SetCrawler<S>>
where S::Crawler: IsUnset,

Optional (Some / Option setters). Property: Crawler

Source

pub fn maybe_crawler( self, value: Option<impl Into<String>>, ) -> MessageBuilder<SetCrawler<S>>
where S::Crawler: IsUnset,

Optional (Some / Option setters). Property: Crawler

Source

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

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

Source

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

Optional (Some / Option setters). Property: Date

Source

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

Optional (Some / Option setters). Property: Date

Source

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

Optional (Some / Option setters). Property: Description

Source

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

Optional (Some / Option setters). Property: Description

Source

pub fn detected_country( self, value: impl Into<String>, ) -> MessageBuilder<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>>, ) -> MessageBuilder<SetDetectedCountry<S>>
where S::DetectedCountry: IsUnset,

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

Source

pub fn detected_language( self, value: impl Into<String>, ) -> MessageBuilder<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>>, ) -> MessageBuilder<SetDetectedLanguage<S>>
where S::DetectedLanguage: IsUnset,

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

Source

pub fn email_mentioned( self, value: impl Into<String>, ) -> MessageBuilder<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>>, ) -> MessageBuilder<SetEmailMentioned<S>>
where S::EmailMentioned: IsUnset,

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

Source

pub fn encoding( self, value: impl Into<String>, ) -> MessageBuilder<SetEncoding<S>>
where S::Encoding: IsUnset,

Optional (Some / Option setters). Property: File encoding

Source

pub fn maybe_encoding( self, value: Option<impl Into<String>>, ) -> MessageBuilder<SetEncoding<S>>
where S::Encoding: IsUnset,

Optional (Some / Option setters). Property: File encoding

Source

pub fn end_date(self, value: impl Into<String>) -> MessageBuilder<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>>, ) -> MessageBuilder<SetEndDate<S>>
where S::EndDate: IsUnset,

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

Source

pub fn extension( self, value: impl Into<String>, ) -> MessageBuilder<SetExtension<S>>
where S::Extension: IsUnset,

Optional (Some / Option setters). Property: File extension

Source

pub fn maybe_extension( self, value: Option<impl Into<String>>, ) -> MessageBuilder<SetExtension<S>>
where S::Extension: IsUnset,

Optional (Some / Option setters). Property: File extension

Source

pub fn file_name( self, value: impl Into<String>, ) -> MessageBuilder<SetFileName<S>>
where S::FileName: IsUnset,

Required.

Property: File name

Source

pub fn file_size(self, value: f64) -> MessageBuilder<SetFileSize<S>>
where S::FileSize: IsUnset,

Optional (Some / Option setters). Property: File size

Source

pub fn maybe_file_size( self, value: Option<f64>, ) -> MessageBuilder<SetFileSize<S>>
where S::FileSize: IsUnset,

Optional (Some / Option setters). Property: File size

Source

pub fn generator( self, value: impl Into<String>, ) -> MessageBuilder<SetGenerator<S>>
where S::Generator: IsUnset,

Optional (Some / Option setters). Property: Generator

Source

pub fn maybe_generator( self, value: Option<impl Into<String>>, ) -> MessageBuilder<SetGenerator<S>>
where S::Generator: IsUnset,

Optional (Some / Option setters). Property: Generator

Source

pub fn iban_mentioned( self, value: impl Into<String>, ) -> MessageBuilder<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>>, ) -> MessageBuilder<SetIbanMentioned<S>>
where S::IbanMentioned: IsUnset,

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

Source

pub fn in_reply_to( self, value: impl Into<String>, ) -> MessageBuilder<SetInReplyTo<S>>
where S::InReplyTo: IsUnset,

Optional (Some / Option setters). Property: In Reply To

Source

pub fn maybe_in_reply_to( self, value: Option<impl Into<String>>, ) -> MessageBuilder<SetInReplyTo<S>>
where S::InReplyTo: IsUnset,

Optional (Some / Option setters). Property: In Reply To

Source

pub fn in_reply_to_message( self, value: impl Into<String>, ) -> MessageBuilder<SetInReplyToMessage<S>>
where S::InReplyToMessage: IsUnset,

Optional (Some / Option setters). Property: Responding to

Source

pub fn maybe_in_reply_to_message( self, value: Option<impl Into<String>>, ) -> MessageBuilder<SetInReplyToMessage<S>>
where S::InReplyToMessage: IsUnset,

Optional (Some / Option setters). Property: Responding to

Source

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

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

Source

pub fn ip_mentioned( self, value: impl Into<String>, ) -> MessageBuilder<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>>, ) -> MessageBuilder<SetIpMentioned<S>>
where S::IpMentioned: IsUnset,

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

Source

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

Optional (Some / Option setters). Property: Keywords

Source

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

Optional (Some / Option setters). Property: Keywords

Source

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

Optional (Some / Option setters). Property: Language

Source

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

Optional (Some / Option setters). Property: Language

Source

pub fn location_mentioned( self, value: impl Into<String>, ) -> MessageBuilder<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>>, ) -> MessageBuilder<SetLocationMentioned<S>>
where S::LocationMentioned: IsUnset,

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

Source

pub fn message_id( self, value: impl Into<String>, ) -> MessageBuilder<SetMessageId<S>>
where S::MessageId: IsUnset,

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

Source

pub fn maybe_message_id( self, value: Option<impl Into<String>>, ) -> MessageBuilder<SetMessageId<S>>
where S::MessageId: IsUnset,

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

Source

pub fn metadata(self, value: Value) -> MessageBuilder<SetMetadata<S>>
where S::Metadata: IsUnset,

Optional (Some / Option setters). Property: Metadata

Source

pub fn maybe_metadata( self, value: Option<Value>, ) -> MessageBuilder<SetMetadata<S>>
where S::Metadata: IsUnset,

Optional (Some / Option setters). Property: Metadata

Source

pub fn mime_type( self, value: impl Into<String>, ) -> MessageBuilder<SetMimeType<S>>
where S::MimeType: IsUnset,

Optional (Some / Option setters). Property: MIME type

Source

pub fn maybe_mime_type( self, value: Option<impl Into<String>>, ) -> MessageBuilder<SetMimeType<S>>
where S::MimeType: IsUnset,

Optional (Some / Option setters). Property: MIME type

Source

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

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

Source

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

Required.

Property: Name

Source

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

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

Source

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

Optional (Some / Option setters). Property: Notes

Source

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

Optional (Some / Option setters). Property: Notes

Source

pub fn parent(self, value: impl Into<String>) -> MessageBuilder<SetParent<S>>
where S::Parent: IsUnset,

Optional (Some / Option setters). Property: Folder

Source

pub fn maybe_parent( self, value: Option<impl Into<String>>, ) -> MessageBuilder<SetParent<S>>
where S::Parent: IsUnset,

Optional (Some / Option setters). Property: Folder

Source

pub fn people_mentioned( self, value: impl Into<String>, ) -> MessageBuilder<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>>, ) -> MessageBuilder<SetPeopleMentioned<S>>
where S::PeopleMentioned: IsUnset,

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

Source

pub fn phone_mentioned( self, value: impl Into<String>, ) -> MessageBuilder<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>>, ) -> MessageBuilder<SetPhoneMentioned<S>>
where S::PhoneMentioned: IsUnset,

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

Source

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

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

Source

pub fn processed_at( self, value: impl Into<String>, ) -> MessageBuilder<SetProcessedAt<S>>
where S::ProcessedAt: IsUnset,

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

Source

pub fn maybe_processed_at( self, value: Option<impl Into<String>>, ) -> MessageBuilder<SetProcessedAt<S>>
where S::ProcessedAt: IsUnset,

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

Source

pub fn processing_agent( self, value: impl Into<String>, ) -> MessageBuilder<SetProcessingAgent<S>>
where S::ProcessingAgent: IsUnset,

Optional (Some / Option setters). Property: Processing agent

Source

pub fn maybe_processing_agent( self, value: Option<impl Into<String>>, ) -> MessageBuilder<SetProcessingAgent<S>>
where S::ProcessingAgent: IsUnset,

Optional (Some / Option setters). Property: Processing agent

Source

pub fn processing_error( self, value: impl Into<String>, ) -> MessageBuilder<SetProcessingError<S>>
where S::ProcessingError: IsUnset,

Optional (Some / Option setters). Property: Processing error

Source

pub fn maybe_processing_error( self, value: Option<impl Into<String>>, ) -> MessageBuilder<SetProcessingError<S>>
where S::ProcessingError: IsUnset,

Optional (Some / Option setters). Property: Processing error

Source

pub fn processing_status( self, value: impl Into<String>, ) -> MessageBuilder<SetProcessingStatus<S>>
where S::ProcessingStatus: IsUnset,

Optional (Some / Option setters). Property: Processing status

Source

pub fn maybe_processing_status( self, value: Option<impl Into<String>>, ) -> MessageBuilder<SetProcessingStatus<S>>
where S::ProcessingStatus: IsUnset,

Optional (Some / Option setters). Property: Processing status

Source

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

Optional (Some / Option setters). Property: Program

Source

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

Optional (Some / Option setters). Property: Program

Source

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

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

Source

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

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

Source

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

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

Source

pub fn published_at( self, value: impl Into<String>, ) -> MessageBuilder<SetPublishedAt<S>>
where S::PublishedAt: IsUnset,

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

Source

pub fn maybe_published_at( self, value: Option<impl Into<String>>, ) -> MessageBuilder<SetPublishedAt<S>>
where S::PublishedAt: IsUnset,

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

Source

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

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

Source

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

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

Source

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

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

Source

pub fn recipient_account( self, value: impl Into<String>, ) -> MessageBuilder<SetRecipientAccount<S>>
where S::RecipientAccount: IsUnset,

Optional (Some / Option setters). Property: Recipient Account

Source

pub fn maybe_recipient_account( self, value: Option<impl Into<String>>, ) -> MessageBuilder<SetRecipientAccount<S>>
where S::RecipientAccount: IsUnset,

Optional (Some / Option setters). Property: Recipient Account

Source

pub fn recipients( self, value: impl Into<String>, ) -> MessageBuilder<SetRecipients<S>>
where S::Recipients: IsUnset,

Optional (Some / Option setters). Property: Recipients

Source

pub fn maybe_recipients( self, value: Option<impl Into<String>>, ) -> MessageBuilder<SetRecipients<S>>
where S::Recipients: IsUnset,

Optional (Some / Option setters). Property: Recipients

Source

pub fn record_id( self, value: impl Into<String>, ) -> MessageBuilder<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>>, ) -> MessageBuilder<SetRecordId<S>>
where S::RecordId: IsUnset,

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

Source

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

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

Source

pub fn sender(self, value: impl Into<String>) -> MessageBuilder<SetSender<S>>
where S::Sender: IsUnset,

Required.

Property: Sender

Source

pub fn sender_account( self, value: impl Into<String>, ) -> MessageBuilder<SetSenderAccount<S>>
where S::SenderAccount: IsUnset,

Optional (Some / Option setters). Property: Sender Account

Source

pub fn maybe_sender_account( self, value: Option<impl Into<String>>, ) -> MessageBuilder<SetSenderAccount<S>>
where S::SenderAccount: IsUnset,

Optional (Some / Option setters). Property: Sender Account

Source

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

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

Source

pub fn start_date( self, value: impl Into<String>, ) -> MessageBuilder<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>>, ) -> MessageBuilder<SetStartDate<S>>
where S::StartDate: IsUnset,

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

Source

pub fn subject(self, value: impl Into<String>) -> MessageBuilder<SetSubject<S>>
where S::Subject: IsUnset,

Optional (Some / Option setters). Property: Subject

Source

pub fn maybe_subject( self, value: Option<impl Into<String>>, ) -> MessageBuilder<SetSubject<S>>
where S::Subject: IsUnset,

Optional (Some / Option setters). Property: Subject

Source

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

Optional (Some / Option setters). Property: Summary

Source

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

Optional (Some / Option setters). Property: Summary

Source

pub fn thread_topic( self, value: impl Into<String>, ) -> MessageBuilder<SetThreadTopic<S>>
where S::ThreadTopic: IsUnset,

Optional (Some / Option setters). Property: Thread topic

Source

pub fn maybe_thread_topic( self, value: Option<impl Into<String>>, ) -> MessageBuilder<SetThreadTopic<S>>
where S::ThreadTopic: IsUnset,

Optional (Some / Option setters). Property: Thread topic

Source

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

Optional (Some / Option setters). Property: Title

Source

pub fn maybe_title( self, value: Option<impl Into<String>>, ) -> MessageBuilder<SetTitle<S>>
where S::Title: IsUnset,

Optional (Some / Option setters). Property: Title

Source

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

Optional (Some / Option setters). Property: Topics

Source

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

Optional (Some / Option setters). Property: Topics

Source

pub fn translated_language( self, value: impl Into<String>, ) -> MessageBuilder<SetTranslatedLanguage<S>>
where S::TranslatedLanguage: IsUnset,

Optional (Some / Option setters). Property: The language of the translated text

Source

pub fn maybe_translated_language( self, value: Option<impl Into<String>>, ) -> MessageBuilder<SetTranslatedLanguage<S>>
where S::TranslatedLanguage: IsUnset,

Optional (Some / Option setters). Property: The language of the translated text

Source

pub fn translated_text( self, value: impl Into<String>, ) -> MessageBuilder<SetTranslatedText<S>>
where S::TranslatedText: IsUnset,

Optional (Some / Option setters). Property: Translated version of the body text

Source

pub fn maybe_translated_text( self, value: Option<impl Into<String>>, ) -> MessageBuilder<SetTranslatedText<S>>
where S::TranslatedText: IsUnset,

Optional (Some / Option setters). Property: Translated version of the body text

Source

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

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

Source

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

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

Source

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

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

Auto Trait Implementations§

§

impl<S> Freeze for MessageBuilder<S>

§

impl<S> RefUnwindSafe for MessageBuilder<S>

§

impl<S> Send for MessageBuilder<S>

§

impl<S> Sync for MessageBuilder<S>

§

impl<S> Unpin for MessageBuilder<S>

§

impl<S> UnsafeUnpin for MessageBuilder<S>

§

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