Struct conjure_codegen::example_types::product::any_map_example::Builder
source · pub struct Builder<T>(/* private fields */);
Expand description
A builder for AnyMapExample
Implementations§
source§impl Builder<Complete>
impl Builder<Complete>
sourcepub fn insert_items(self, key: impl Into<String>, value: impl Serialize) -> Self
pub fn insert_items(self, key: impl Into<String>, value: impl Serialize) -> Self
Adds an entry to the items
field.
sourcepub fn items(
self,
items: impl IntoIterator<Item = (impl Into<String>, impl Serialize)>,
) -> Self
pub fn items( self, items: impl IntoIterator<Item = (impl Into<String>, impl Serialize)>, ) -> Self
Sets the items
field.
sourcepub fn extend_items(
self,
items: impl IntoIterator<Item = (impl Into<String>, impl Serialize)>,
) -> Self
pub fn extend_items( self, items: impl IntoIterator<Item = (impl Into<String>, impl Serialize)>, ) -> Self
Adds entries to the items
field.
sourcepub fn build(self) -> AnyMapExample
pub fn build(self) -> AnyMapExample
Consumes the builder, returning a AnyMapExample
.
Trait Implementations§
source§impl From<AnyMapExample> for Builder<Complete>
impl From<AnyMapExample> for Builder<Complete>
source§fn from(v: AnyMapExample) -> Self
fn from(v: AnyMapExample) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for Builder<T>where
T: Freeze,
impl<T> RefUnwindSafe for Builder<T>where
T: RefUnwindSafe,
impl<T> Send for Builder<T>where
T: Send,
impl<T> Sync for Builder<T>where
T: Sync,
impl<T> Unpin for Builder<T>where
T: Unpin,
impl<T> UnwindSafe for Builder<T>where
T: UnwindSafe,
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