pub struct ComponentSignatureBuilder { /* private fields */ }
Expand description
Builder for ComponentSignature
.
Implementations§
source§impl ComponentSignatureBuilder
impl ComponentSignatureBuilder
sourcepub fn format(&mut self, value: ComponentVersion) -> &mut Self
pub fn format(&mut self, value: ComponentVersion) -> &mut Self
The format of the component signature.
sourcepub fn metadata(&mut self, value: ComponentMetadata) -> &mut Self
pub fn metadata(&mut self, value: ComponentMetadata) -> &mut Self
Component implementation version.
sourcepub fn wellknown(&mut self, value: Vec<WellKnownSchema>) -> &mut Self
pub fn wellknown(&mut self, value: Vec<WellKnownSchema>) -> &mut Self
A map of type signatures referenced elsewhere.
sourcepub fn types(&mut self, value: Vec<TypeDefinition>) -> &mut Self
pub fn types(&mut self, value: Vec<TypeDefinition>) -> &mut Self
A map of type signatures referenced elsewhere.
sourcepub fn operations(&mut self, value: Vec<OperationSignature>) -> &mut Self
pub fn operations(&mut self, value: Vec<OperationSignature>) -> &mut Self
A list of OperationSignatures in this component.
sourcepub fn config(&mut self, value: Vec<Field>) -> &mut Self
pub fn config(&mut self, value: Vec<Field>) -> &mut Self
The component’s configuration for this implementation.
sourcepub fn build(
&self
) -> Result<ComponentSignature, ComponentSignatureBuilderError>
pub fn build( &self ) -> Result<ComponentSignature, ComponentSignatureBuilderError>
Trait Implementations§
source§impl Clone for ComponentSignatureBuilder
impl Clone for ComponentSignatureBuilder
source§fn clone(&self) -> ComponentSignatureBuilder
fn clone(&self) -> ComponentSignatureBuilder
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 moreAuto Trait Implementations§
impl RefUnwindSafe for ComponentSignatureBuilder
impl Send for ComponentSignatureBuilder
impl Sync for ComponentSignatureBuilder
impl Unpin for ComponentSignatureBuilder
impl UnwindSafe for ComponentSignatureBuilder
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