#[non_exhaustive]pub struct PutAssetOutputBuilder { /* private fields */ }Expand description
A builder for PutAssetOutput.
Implementations§
Source§impl PutAssetOutputBuilder
impl PutAssetOutputBuilder
Sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The unique identifier of the asset.
This field is required.Sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the asset.
This field is required.Sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the asset.
Sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the asset.
Sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the asset.
Sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The timestamp at which the asset was created.
Sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
The timestamp at which the asset was created.
Sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The timestamp at which the asset was created.
Sourcepub fn forms(self, k: impl Into<String>, v: AssetFormEntry) -> Self
pub fn forms(self, k: impl Into<String>, v: AssetFormEntry) -> Self
Adds a key-value pair to forms.
To override the contents of this collection use set_forms.
The forms attached to the asset, keyed by form name.
Sourcepub fn set_forms(self, input: Option<HashMap<String, AssetFormEntry>>) -> Self
pub fn set_forms(self, input: Option<HashMap<String, AssetFormEntry>>) -> Self
The forms attached to the asset, keyed by form name.
Sourcepub fn get_forms(&self) -> &Option<HashMap<String, AssetFormEntry>>
pub fn get_forms(&self) -> &Option<HashMap<String, AssetFormEntry>>
The forms attached to the asset, keyed by form name.
Sourcepub fn build(self) -> Result<PutAssetOutput, BuildError>
pub fn build(self) -> Result<PutAssetOutput, BuildError>
Consumes the builder and constructs a PutAssetOutput.
This method will fail if any of the following fields are not set:
Trait Implementations§
Source§impl Clone for PutAssetOutputBuilder
impl Clone for PutAssetOutputBuilder
Source§fn clone(&self) -> PutAssetOutputBuilder
fn clone(&self) -> PutAssetOutputBuilder
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 PutAssetOutputBuilder
impl Debug for PutAssetOutputBuilder
Source§impl Default for PutAssetOutputBuilder
impl Default for PutAssetOutputBuilder
Source§fn default() -> PutAssetOutputBuilder
fn default() -> PutAssetOutputBuilder
Returns the “default value” for a type. Read more
Source§impl PartialEq for PutAssetOutputBuilder
impl PartialEq for PutAssetOutputBuilder
impl StructuralPartialEq for PutAssetOutputBuilder
Auto Trait Implementations§
impl Freeze for PutAssetOutputBuilder
impl RefUnwindSafe for PutAssetOutputBuilder
impl Send for PutAssetOutputBuilder
impl Sync for PutAssetOutputBuilder
impl Unpin for PutAssetOutputBuilder
impl UnsafeUnpin for PutAssetOutputBuilder
impl UnwindSafe for PutAssetOutputBuilder
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.