#[non_exhaustive]pub struct ResourceAttributeBuilder { /* private fields */ }Expand description
A builder for ResourceAttribute.
Implementations§
source§impl ResourceAttributeBuilder
impl ResourceAttributeBuilder
sourcepub fn type(self, input: ResourceAttributeType) -> Self
pub fn type(self, input: ResourceAttributeType) -> Self
Type of resource.
This field is required.sourcepub fn set_type(self, input: Option<ResourceAttributeType>) -> Self
pub fn set_type(self, input: Option<ResourceAttributeType>) -> Self
Type of resource.
sourcepub fn get_type(&self) -> &Option<ResourceAttributeType>
pub fn get_type(&self) -> &Option<ResourceAttributeType>
Type of resource.
sourcepub fn value(self, input: impl Into<String>) -> Self
pub fn value(self, input: impl Into<String>) -> Self
Value of the resource type.
This field is required.sourcepub fn build(self) -> Result<ResourceAttribute, BuildError>
pub fn build(self) -> Result<ResourceAttribute, BuildError>
Consumes the builder and constructs a ResourceAttribute.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ResourceAttributeBuilder
impl Clone for ResourceAttributeBuilder
source§fn clone(&self) -> ResourceAttributeBuilder
fn clone(&self) -> ResourceAttributeBuilder
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 ResourceAttributeBuilder
impl Debug for ResourceAttributeBuilder
source§impl Default for ResourceAttributeBuilder
impl Default for ResourceAttributeBuilder
source§fn default() -> ResourceAttributeBuilder
fn default() -> ResourceAttributeBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ResourceAttributeBuilder
impl PartialEq for ResourceAttributeBuilder
source§fn eq(&self, other: &ResourceAttributeBuilder) -> bool
fn eq(&self, other: &ResourceAttributeBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ResourceAttributeBuilder
Auto Trait Implementations§
impl Freeze for ResourceAttributeBuilder
impl RefUnwindSafe for ResourceAttributeBuilder
impl Send for ResourceAttributeBuilder
impl Sync for ResourceAttributeBuilder
impl Unpin for ResourceAttributeBuilder
impl UnwindSafe for ResourceAttributeBuilder
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>
Creates a shared type from an unshared type.