pub struct CustomMetadataBuilder(/* private fields */);Expand description
Builder for CustomMetadata.
Implementations§
Source§impl CustomMetadataBuilder
impl CustomMetadataBuilder
pub fn key(self, value: impl Into<String>) -> Self
pub fn string_value(self, value: impl Into<String>) -> Self
pub fn string_list_value(self, value: impl Into<StringList>) -> Self
pub fn numeric_value(self, value: impl Into<f64>) -> Self
pub fn rest(self, value: Rest) -> Self
Sourcepub fn build(self) -> CustomMetadata
pub fn build(self) -> CustomMetadata
Return the completed wire value.
Auto Trait Implementations§
impl Freeze for CustomMetadataBuilder
impl RefUnwindSafe for CustomMetadataBuilder
impl Send for CustomMetadataBuilder
impl Sync for CustomMetadataBuilder
impl Unpin for CustomMetadataBuilder
impl UnsafeUnpin for CustomMetadataBuilder
impl UnwindSafe for CustomMetadataBuilder
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