#[non_exhaustive]pub struct ItemSourceBuilder { /* private fields */ }Expand description
A builder for ItemSource.
Implementations§
source§impl ItemSourceBuilder
impl ItemSourceBuilder
sourcepub fn set_geometry(self, input: Option<Geometry>) -> Self
pub fn set_geometry(self, input: Option<Geometry>) -> Self
The item Geometry in GeoJson format.
sourcepub fn assets(self, k: impl Into<String>, v: AssetValue) -> Self
pub fn assets(self, k: impl Into<String>, v: AssetValue) -> Self
Adds a key-value pair to assets.
To override the contents of this collection use set_assets.
This is a dictionary of Asset Objects data associated with the Item that can be downloaded or streamed, each with a unique key.
sourcepub fn set_assets(self, input: Option<HashMap<String, AssetValue>>) -> Self
pub fn set_assets(self, input: Option<HashMap<String, AssetValue>>) -> Self
This is a dictionary of Asset Objects data associated with the Item that can be downloaded or streamed, each with a unique key.
sourcepub fn date_time(self, input: DateTime) -> Self
pub fn date_time(self, input: DateTime) -> Self
The searchable date and time of the item, in UTC.
sourcepub fn set_date_time(self, input: Option<DateTime>) -> Self
pub fn set_date_time(self, input: Option<DateTime>) -> Self
The searchable date and time of the item, in UTC.
sourcepub fn properties(self, input: Properties) -> Self
pub fn properties(self, input: Properties) -> Self
This field contains additional properties of the item.
sourcepub fn set_properties(self, input: Option<Properties>) -> Self
pub fn set_properties(self, input: Option<Properties>) -> Self
This field contains additional properties of the item.
sourcepub fn build(self) -> ItemSource
pub fn build(self) -> ItemSource
Consumes the builder and constructs a ItemSource.
Trait Implementations§
source§impl Clone for ItemSourceBuilder
impl Clone for ItemSourceBuilder
source§fn clone(&self) -> ItemSourceBuilder
fn clone(&self) -> ItemSourceBuilder
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 Debug for ItemSourceBuilder
impl Debug for ItemSourceBuilder
source§impl Default for ItemSourceBuilder
impl Default for ItemSourceBuilder
source§fn default() -> ItemSourceBuilder
fn default() -> ItemSourceBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<ItemSourceBuilder> for ItemSourceBuilder
impl PartialEq<ItemSourceBuilder> for ItemSourceBuilder
source§fn eq(&self, other: &ItemSourceBuilder) -> bool
fn eq(&self, other: &ItemSourceBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ItemSourceBuilder
Auto Trait Implementations§
impl RefUnwindSafe for ItemSourceBuilder
impl Send for ItemSourceBuilder
impl Sync for ItemSourceBuilder
impl Unpin for ItemSourceBuilder
impl UnwindSafe for ItemSourceBuilder
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