pub trait DocumentJsonMethodsV0<'a>: DocumentPlatformValueMethodsV0<'a> {
// Required methods
fn to_json_with_identifiers_using_bytes(
&self,
platform_version: &PlatformVersion,
) -> Result<JsonValue, ProtocolError>;
fn to_json(
&self,
platform_version: &PlatformVersion,
) -> Result<JsonValue, ProtocolError>;
fn from_json_value<S, E>(
document_value: JsonValue,
platform_version: &PlatformVersion,
) -> Result<Self, ProtocolError>
where for<'de> S: Deserialize<'de> + TryInto<Identifier, Error = E>,
E: Into<ProtocolError>,
Self: Sized;
}Required Methods§
fn to_json_with_identifiers_using_bytes( &self, platform_version: &PlatformVersion, ) -> Result<JsonValue, ProtocolError>
fn to_json( &self, platform_version: &PlatformVersion, ) -> Result<JsonValue, ProtocolError>
fn from_json_value<S, E>(
document_value: JsonValue,
platform_version: &PlatformVersion,
) -> Result<Self, ProtocolError>where
for<'de> S: Deserialize<'de> + TryInto<Identifier, Error = E>,
E: Into<ProtocolError>,
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.