pub trait DocumentPlatformValueMethodsV0<'a>: Serialize + Deserialize<'a> {
// Required methods
fn to_map_value(&self) -> Result<BTreeMap<String, Value>, ProtocolError>;
fn into_map_value(self) -> Result<BTreeMap<String, Value>, ProtocolError>;
fn into_value(self) -> Result<Value, ProtocolError>;
fn to_object(&self) -> Result<Value, ProtocolError>;
fn from_platform_value(
document_value: Value,
platform_version: &PlatformVersion,
) -> Result<Self, ProtocolError>
where Self: Sized;
}Required Methods§
fn to_map_value(&self) -> Result<BTreeMap<String, Value>, ProtocolError>
fn into_map_value(self) -> Result<BTreeMap<String, Value>, ProtocolError>
fn into_value(self) -> Result<Value, ProtocolError>
fn to_object(&self) -> Result<Value, ProtocolError>
fn from_platform_value(
document_value: Value,
platform_version: &PlatformVersion,
) -> Result<Self, ProtocolError>where
Self: Sized,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.