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 duplicate 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 Freeze for ComponentSignatureBuilder
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