pub fn write_registry_entry<P: AsRef<Path> + fmt::Debug, M: Message>(
    data_provider: &ProtoRegistryDataProvider,
    path: P,
    key: &str,
    registry_version: RegistryVersion,
    record: M,
) where
    P: AsRef<Path>,
    M: Message + std::clone::Clone,
{
    data_provider
        .add(key, registry_version, Some(record.clone()))
        .expect("Could not add key to registry data provider.");
    write_proto_to_file(key, record, path)
}
/// Adds the k/v entry to the given data provider and into a file named `key` in
/// the given directory.
Adds the k/v entry to the given data provider and into a file named `key` in
the given directory.
Adds the k / v entry to the given data provider and into a file named ` key ` in the given directory .
pub fn write_registry_entry<P: AsRef<Path> + fmt::Debug, M: Message>(
    data_provider: &ProtoRegistryDataProvider,
    path: P,
    key: &str,
    registry_version: RegistryVersion,
    record: M,
) where
    P: AsRef<Path>,
    M: Message + std::clone::Clone,
{
    data_provider
        .add(key, registry_version, Some(record.clone()))
        .expect("Could not add key to registry data provider.");
    write_proto_to_file(key, record, path)
}
pub fn write_registry_entry < P : AsRef < Path > + fmt :: Debug , M : Message > ( data_provider : & ProtoRegistryDataProvider , path : P , key : & str , registry_version : RegistryVersion , record : M , ) where P : AsRef < Path > , M : Message + std :: clone :: Clone , { data_provider . add ( key , registry_version , Some ( record . clone ( ) ) ) . expect ( " " ) ; write_proto_to_file ( key , record , path ) }
Adds the k/v entry to the given data provider and into a file named `key` in
the given directory.
Adds the k / v entry to the given data provider and into a file named ` key ` in the given directory .
data_provider
&ProtoRegistryDataProvider
path
P
key
&str
registry_version
RegistryVersion
record
M
data_provider
&ProtoRegistryDataProvider
path
P
key
&str
registry_version
RegistryVersion
record
M