#[non_exhaustive]pub struct SearchResultItemBuilder { /* private fields */ }Expand description
A builder for SearchResultItem.
Implementations§
Source§impl SearchResultItemBuilder
impl SearchResultItemBuilder
Sourcepub fn asset_name(self, input: impl Into<String>) -> Self
pub fn asset_name(self, input: impl Into<String>) -> Self
The name of the matched asset.
Sourcepub fn set_asset_name(self, input: Option<String>) -> Self
pub fn set_asset_name(self, input: Option<String>) -> Self
The name of the matched asset.
Sourcepub fn get_asset_name(&self) -> &Option<String>
pub fn get_asset_name(&self) -> &Option<String>
The name of the matched asset.
Sourcepub fn asset_description(self, input: impl Into<String>) -> Self
pub fn asset_description(self, input: impl Into<String>) -> Self
The description of the matched asset.
Sourcepub fn set_asset_description(self, input: Option<String>) -> Self
pub fn set_asset_description(self, input: Option<String>) -> Self
The description of the matched asset.
Sourcepub fn get_asset_description(&self) -> &Option<String>
pub fn get_asset_description(&self) -> &Option<String>
The description of the matched asset.
Sourcepub fn updated_at(self, input: DateTime) -> Self
pub fn updated_at(self, input: DateTime) -> Self
The timestamp at which the matched asset was last updated.
Sourcepub fn set_updated_at(self, input: Option<DateTime>) -> Self
pub fn set_updated_at(self, input: Option<DateTime>) -> Self
The timestamp at which the matched asset was last updated.
Sourcepub fn get_updated_at(&self) -> &Option<DateTime>
pub fn get_updated_at(&self) -> &Option<DateTime>
The timestamp at which the matched asset was last updated.
Sourcepub fn asset_type_id(self, input: impl Into<String>) -> Self
pub fn asset_type_id(self, input: impl Into<String>) -> Self
The identifier of the asset type for the matched asset.
Sourcepub fn set_asset_type_id(self, input: Option<String>) -> Self
pub fn set_asset_type_id(self, input: Option<String>) -> Self
The identifier of the asset type for the matched asset.
Sourcepub fn get_asset_type_id(&self) -> &Option<String>
pub fn get_asset_type_id(&self) -> &Option<String>
The identifier of the asset type for the matched asset.
Sourcepub fn build(self) -> SearchResultItem
pub fn build(self) -> SearchResultItem
Consumes the builder and constructs a SearchResultItem.
Trait Implementations§
Source§impl Clone for SearchResultItemBuilder
impl Clone for SearchResultItemBuilder
Source§fn clone(&self) -> SearchResultItemBuilder
fn clone(&self) -> SearchResultItemBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SearchResultItemBuilder
impl Debug for SearchResultItemBuilder
Source§impl Default for SearchResultItemBuilder
impl Default for SearchResultItemBuilder
Source§fn default() -> SearchResultItemBuilder
fn default() -> SearchResultItemBuilder
Returns the “default value” for a type. Read more
Source§impl PartialEq for SearchResultItemBuilder
impl PartialEq for SearchResultItemBuilder
impl StructuralPartialEq for SearchResultItemBuilder
Auto Trait Implementations§
impl Freeze for SearchResultItemBuilder
impl RefUnwindSafe for SearchResultItemBuilder
impl Send for SearchResultItemBuilder
impl Sync for SearchResultItemBuilder
impl Unpin for SearchResultItemBuilder
impl UnsafeUnpin for SearchResultItemBuilder
impl UnwindSafe for SearchResultItemBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.