#[non_exhaustive]pub struct ComponentRequestBuilder { /* private fields */ }Expand description
A builder for ComponentRequest.
Implementations§
source§impl ComponentRequestBuilder
impl ComponentRequestBuilder
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the component request.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the component request.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the component request.
sourcepub fn component_type_id(self, input: impl Into<String>) -> Self
pub fn component_type_id(self, input: impl Into<String>) -> Self
The ID of the component type.
sourcepub fn set_component_type_id(self, input: Option<String>) -> Self
pub fn set_component_type_id(self, input: Option<String>) -> Self
The ID of the component type.
sourcepub fn get_component_type_id(&self) -> &Option<String>
pub fn get_component_type_id(&self) -> &Option<String>
The ID 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.
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
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>>
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) -> ComponentRequest
pub fn build(self) -> ComponentRequest
Consumes the builder and constructs a ComponentRequest.
Trait Implementations§
source§impl Clone for ComponentRequestBuilder
impl Clone for ComponentRequestBuilder
source§fn clone(&self) -> ComponentRequestBuilder
fn clone(&self) -> ComponentRequestBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ComponentRequestBuilder
impl Debug for ComponentRequestBuilder
source§impl Default for ComponentRequestBuilder
impl Default for ComponentRequestBuilder
source§fn default() -> ComponentRequestBuilder
fn default() -> ComponentRequestBuilder
source§impl PartialEq for ComponentRequestBuilder
impl PartialEq for ComponentRequestBuilder
impl StructuralPartialEq for ComponentRequestBuilder
Auto Trait Implementations§
impl Freeze for ComponentRequestBuilder
impl RefUnwindSafe for ComponentRequestBuilder
impl Send for ComponentRequestBuilder
impl Sync for ComponentRequestBuilder
impl Unpin for ComponentRequestBuilder
impl UnwindSafe for ComponentRequestBuilder
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