mz_catalog::durable::upgrade::wire_compatible

Trait WireCompatible

Source
pub unsafe trait WireCompatible<T: Message>: Message + Default {
    // Provided method
    fn convert(old: &T) -> Self { ... }
}
Expand description

Denotes that Self is wire compatible with type T.

You should not implement this yourself, instead use the wire_compatible! macro.

Provided Methods§

Source

fn convert(old: &T) -> Self

Converts the type T into Self by serializing T and deserializing as Self.

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.

Implementors§

Source§

impl WireCompatible<CatalogItem> for mz_catalog::durable::upgrade::objects_v68::CatalogItem

Source§

impl WireCompatible<ClusterId> for mz_catalog::durable::upgrade::objects_v68::ClusterId

Source§

impl WireCompatible<ClusterIntrospectionSourceIndexKey> for mz_catalog::durable::upgrade::objects_v68::ClusterIntrospectionSourceIndexKey

Source§

impl WireCompatible<ClusterReplicaId> for mz_catalog::durable::upgrade::objects_v68::ClusterReplicaId

Source§

impl WireCompatible<CommentValue> for mz_catalog::durable::upgrade::objects_v68::CommentValue

Source§

impl WireCompatible<DatabaseId> for mz_catalog::durable::upgrade::objects_v68::DatabaseId

Source§

impl WireCompatible<GidMappingKey> for mz_catalog::durable::upgrade::objects_v68::GidMappingKey

Source§

impl WireCompatible<GlobalId> for mz_catalog::durable::upgrade::objects_v68::GlobalId

Source§

impl WireCompatible<MzAclItem> for mz_catalog::durable::upgrade::objects_v68::MzAclItem

Source§

impl WireCompatible<ResolvedSchema> for mz_catalog::durable::upgrade::objects_v68::ResolvedSchema

Source§

impl WireCompatible<RoleId> for mz_catalog::durable::upgrade::objects_v68::RoleId

Source§

impl WireCompatible<SchemaId> for mz_catalog::durable::upgrade::objects_v68::SchemaId

Source§

impl WireCompatible<SourceReferencesValue> for mz_catalog::durable::upgrade::objects_v68::SourceReferencesValue

Source§

impl WireCompatible<CatalogItem> for mz_catalog::durable::upgrade::objects_v67::CatalogItem

Source§

impl WireCompatible<ClusterId> for mz_catalog::durable::upgrade::objects_v67::ClusterId

Source§

impl WireCompatible<ClusterIntrospectionSourceIndexKey> for mz_catalog::durable::upgrade::objects_v67::ClusterIntrospectionSourceIndexKey

Source§

impl WireCompatible<ClusterReplicaId> for mz_catalog::durable::upgrade::objects_v67::ClusterReplicaId

Source§

impl WireCompatible<CommentValue> for mz_catalog::durable::upgrade::objects_v67::CommentValue

Source§

impl WireCompatible<DatabaseId> for mz_catalog::durable::upgrade::objects_v67::DatabaseId

Source§

impl WireCompatible<GidMappingKey> for mz_catalog::durable::upgrade::objects_v67::GidMappingKey

Source§

impl WireCompatible<GlobalId> for mz_catalog::durable::upgrade::objects_v67::GlobalId

Source§

impl WireCompatible<MzAclItem> for mz_catalog::durable::upgrade::objects_v67::MzAclItem

Source§

impl WireCompatible<ResolvedSchema> for mz_catalog::durable::upgrade::objects_v67::ResolvedSchema

Source§

impl WireCompatible<RoleId> for mz_catalog::durable::upgrade::objects_v67::RoleId

Source§

impl WireCompatible<SchemaId> for mz_catalog::durable::upgrade::objects_v67::SchemaId

Source§

impl WireCompatible<SourceReferencesValue> for mz_catalog::durable::upgrade::objects_v67::SourceReferencesValue

Source§

impl<T: Message + Default + Clone> WireCompatible<T> for T