#[non_exhaustive]pub struct CompositeComponentRequestBuilder { /* private fields */ }Expand description
A builder for CompositeComponentRequest.
Implementations§
source§impl CompositeComponentRequestBuilder
impl CompositeComponentRequestBuilder
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the component type.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the component type.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the component type.
sourcepub fn properties(self, k: impl Into<String>, v: PropertyRequest) -> Self
pub fn properties(self, k: impl Into<String>, v: PropertyRequest) -> Self
Adds a key-value pair to properties.
To override the contents of this collection use set_properties.
This is an object that maps strings to the properties to set in the component type. Each string in the mapping must be unique to this object.
sourcepub fn set_properties(
self,
input: Option<HashMap<String, PropertyRequest>>,
) -> Self
pub fn set_properties( self, input: Option<HashMap<String, PropertyRequest>>, ) -> Self
This is an object that maps strings to the properties to set in the component type. Each string in the mapping must be unique to this object.
sourcepub fn get_properties(&self) -> &Option<HashMap<String, PropertyRequest>>
pub fn get_properties(&self) -> &Option<HashMap<String, PropertyRequest>>
This is an object that maps strings to the properties to set in the component type. Each string in the mapping must be unique to this object.
sourcepub fn property_groups(
self,
k: impl Into<String>,
v: ComponentPropertyGroupRequest,
) -> Self
pub fn property_groups( self, k: impl Into<String>, v: ComponentPropertyGroupRequest, ) -> Self
Adds a key-value pair to property_groups.
To override the contents of this collection use set_property_groups.
The property groups.
sourcepub fn set_property_groups(
self,
input: Option<HashMap<String, ComponentPropertyGroupRequest>>,
) -> Self
pub fn set_property_groups( self, input: Option<HashMap<String, ComponentPropertyGroupRequest>>, ) -> Self
The property groups.
sourcepub fn get_property_groups(
&self,
) -> &Option<HashMap<String, ComponentPropertyGroupRequest>>
pub fn get_property_groups( &self, ) -> &Option<HashMap<String, ComponentPropertyGroupRequest>>
The property groups.
sourcepub fn build(self) -> CompositeComponentRequest
pub fn build(self) -> CompositeComponentRequest
Consumes the builder and constructs a CompositeComponentRequest.
Trait Implementations§
source§impl Clone for CompositeComponentRequestBuilder
impl Clone for CompositeComponentRequestBuilder
source§fn clone(&self) -> CompositeComponentRequestBuilder
fn clone(&self) -> CompositeComponentRequestBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for CompositeComponentRequestBuilder
impl Default for CompositeComponentRequestBuilder
source§fn default() -> CompositeComponentRequestBuilder
fn default() -> CompositeComponentRequestBuilder
source§impl PartialEq for CompositeComponentRequestBuilder
impl PartialEq for CompositeComponentRequestBuilder
source§fn eq(&self, other: &CompositeComponentRequestBuilder) -> bool
fn eq(&self, other: &CompositeComponentRequestBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CompositeComponentRequestBuilder
Auto Trait Implementations§
impl Freeze for CompositeComponentRequestBuilder
impl RefUnwindSafe for CompositeComponentRequestBuilder
impl Send for CompositeComponentRequestBuilder
impl Sync for CompositeComponentRequestBuilder
impl Unpin for CompositeComponentRequestBuilder
impl UnwindSafe for CompositeComponentRequestBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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>
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>
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 more