#[non_exhaustive]pub struct SourceContentDataDetailsBuilder { /* private fields */ }Expand description
A builder for SourceContentDataDetails.
Implementations§
source§impl SourceContentDataDetailsBuilder
impl SourceContentDataDetailsBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The identifier of the source content.
This field is required.sourcepub fn type(self, input: SourceContentType) -> Self
pub fn type(self, input: SourceContentType) -> Self
The type of the source content.
This field is required.sourcepub fn set_type(self, input: Option<SourceContentType>) -> Self
pub fn set_type(self, input: Option<SourceContentType>) -> Self
The type of the source content.
sourcepub fn get_type(&self) -> &Option<SourceContentType>
pub fn get_type(&self) -> &Option<SourceContentType>
The type of the source content.
sourcepub fn text_data(self, input: TextData) -> Self
pub fn text_data(self, input: TextData) -> Self
Details about the source content text data.
This field is required.sourcepub fn set_text_data(self, input: Option<TextData>) -> Self
pub fn set_text_data(self, input: Option<TextData>) -> Self
Details about the source content text data.
sourcepub fn get_text_data(&self) -> &Option<TextData>
pub fn get_text_data(&self) -> &Option<TextData>
Details about the source content text data.
sourcepub fn ranking_data(self, input: RankingData) -> Self
pub fn ranking_data(self, input: RankingData) -> Self
Details about the source content ranking data.
This field is required.sourcepub fn set_ranking_data(self, input: Option<RankingData>) -> Self
pub fn set_ranking_data(self, input: Option<RankingData>) -> Self
Details about the source content ranking data.
sourcepub fn get_ranking_data(&self) -> &Option<RankingData>
pub fn get_ranking_data(&self) -> &Option<RankingData>
Details about the source content ranking data.
sourcepub fn build(self) -> Result<SourceContentDataDetails, BuildError>
pub fn build(self) -> Result<SourceContentDataDetails, BuildError>
Consumes the builder and constructs a SourceContentDataDetails.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for SourceContentDataDetailsBuilder
impl Clone for SourceContentDataDetailsBuilder
source§fn clone(&self) -> SourceContentDataDetailsBuilder
fn clone(&self) -> SourceContentDataDetailsBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for SourceContentDataDetailsBuilder
impl Default for SourceContentDataDetailsBuilder
source§fn default() -> SourceContentDataDetailsBuilder
fn default() -> SourceContentDataDetailsBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for SourceContentDataDetailsBuilder
impl PartialEq for SourceContentDataDetailsBuilder
source§fn eq(&self, other: &SourceContentDataDetailsBuilder) -> bool
fn eq(&self, other: &SourceContentDataDetailsBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for SourceContentDataDetailsBuilder
Auto Trait Implementations§
impl Freeze for SourceContentDataDetailsBuilder
impl RefUnwindSafe for SourceContentDataDetailsBuilder
impl Send for SourceContentDataDetailsBuilder
impl Sync for SourceContentDataDetailsBuilder
impl Unpin for SourceContentDataDetailsBuilder
impl UnwindSafe for SourceContentDataDetailsBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.