pub struct CollectionBuilder { /* private fields */ }Expand description
Builder for creating STAC Collections.
Implementations§
Source§impl CollectionBuilder
impl CollectionBuilder
Sourcepub fn new(
id: impl Into<String>,
description: impl Into<String>,
license: impl Into<String>,
) -> Self
pub fn new( id: impl Into<String>, description: impl Into<String>, license: impl Into<String>, ) -> Self
Sourcepub fn temporal_extent(
self,
start: Option<DateTime<Utc>>,
end: Option<DateTime<Utc>>,
) -> Self
pub fn temporal_extent( self, start: Option<DateTime<Utc>>, end: Option<DateTime<Utc>>, ) -> Self
Sourcepub fn build(self) -> Result<Collection>
pub fn build(self) -> Result<Collection>
Trait Implementations§
Source§impl Clone for CollectionBuilder
impl Clone for CollectionBuilder
Source§fn clone(&self) -> CollectionBuilder
fn clone(&self) -> CollectionBuilder
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for CollectionBuilder
impl RefUnwindSafe for CollectionBuilder
impl Send for CollectionBuilder
impl Sync for CollectionBuilder
impl Unpin for CollectionBuilder
impl UnsafeUnpin for CollectionBuilder
impl UnwindSafe for CollectionBuilder
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