Trait PayloadAttributesBuilder
pub trait PayloadAttributesBuilder:
Debug
+ Send
+ Sync
+ 'static {
type PayloadAttributes: PayloadAttributes;
type Error: Error + Send + Sync;
// Required method
fn build(&self) -> Result<Self::PayloadAttributes, Self::Error>;
}
Expand description
A builder that can return the current payload attribute.
Required Associated Types§
type PayloadAttributes: PayloadAttributes
type PayloadAttributes: PayloadAttributes
The payload attributes type returned by the builder.
type Error: Error + Send + Sync
type Error: Error + Send + Sync
The error type returned by PayloadAttributesBuilder::build
.
Required Methods§
fn build(&self) -> Result<Self::PayloadAttributes, Self::Error>
fn build(&self) -> Result<Self::PayloadAttributes, Self::Error>
Return a new payload attribute from the builder.