Trait fiberplane_pdk::provider_data::ProviderData
source · pub trait ProviderData: Sized {
// Required methods
fn parse_blob(blob: Blob) -> Result<Self>;
fn to_blob(&self) -> Result<Blob>;
}
Expand description
Trait to be implemented by custom data types for convenient parsing and
serialization to/from Blob
s.
Implementations can be derived using the ProviderData
derive macro.
Required Methods§
sourcefn parse_blob(blob: Blob) -> Result<Self>
fn parse_blob(blob: Blob) -> Result<Self>
Parses a Blob
with the correct MIME type into the struct implementing
this trait.
Object Safety§
This trait is not object safe.