Trait longport_httpcli::ToPayload
source · pub trait ToPayload: Sized + Send + Sync + 'static {
type Err: Error;
// Required method
fn to_bytes(&self) -> Result<Vec<u8>, Self::Err>;
}
Expand description
Represents a type that can convert to payload
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.