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§
sourcetype PayloadAttributes: PayloadAttributes
type PayloadAttributes: PayloadAttributes
The payload attributes type returned by the builder.
Required Methods§
sourcefn build(&self) -> Result<Self::PayloadAttributes, Self::Error>
fn build(&self) -> Result<Self::PayloadAttributes, Self::Error>
Return a new payload attribute from the builder.