pub trait FromMap {
type Error: From<RocketMQError>;
type Target;
// Required method
fn from(
map: &HashMap<CheetahString, CheetahString>,
) -> Result<Self::Target, Self::Error>;
}Required Associated Types§
Required Methods§
Sourcefn from(
map: &HashMap<CheetahString, CheetahString>,
) -> Result<Self::Target, Self::Error>
fn from( map: &HashMap<CheetahString, CheetahString>, ) -> Result<Self::Target, Self::Error>
Converts the implementing type from a map.
Returns an instance of Self::Target that is created from the provided map.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".