pub fn serialize_get_changes_since_response(
    response: pb::v1::RegistryGetChangesSinceResponse,
) -> Result<Vec<u8>, Error> {
    let mut buf = Vec::new();
    match response.encode(&mut buf) {
        Ok(_) => Ok(buf),
        Err(error) => Err(Error::MalformedMessage(error.to_string())),
    }
}
/// Serializes a response for a get_changes_since() request to the registry
/// canister.
//
// Note: This uses the PB structs directly as this function is meant to
// be used in the registry canister only and thus there is no problem with
// leaking the PB structs to the rest of the code base.
Serializes a response for a get_changes_since() request to the registry
canister.

This uses the PB structs directly as this function is meant to
be used in the registry canister only and thus there is no problem with
leaking the PB structs to the rest of the code base.
Serializes a response for a get_changes_since () request to the registry canister . This uses the PB structs directly as this function is meant to be used in the registry canister only and thus there is no problem with leaking the PB structs to the rest of the code base .
pub fn serialize_get_changes_since_response(
    response: pb::v1::RegistryGetChangesSinceResponse,
) -> Result<Vec<u8>, Error> {
    let mut buf = Vec::new();
    match response.encode(&mut buf) {
        Ok(_) => Ok(buf),
        Err(error) => Err(Error::MalformedMessage(error.to_string())),
    }
}
pub fn serialize_get_changes_since_response ( response : pb :: v1 :: RegistryGetChangesSinceResponse , ) -> Result < Vec < u8 > , Error > { let mut buf = Vec :: new ( ) ; match response . encode ( & mut buf ) { Ok ( _ ) => Ok ( buf ) , Err ( error ) => Err ( Error :: MalformedMessage ( error . to_string ( ) ) ) , } }
Serializes a response for a get_changes_since() request to the registry
canister.
Serializes a response for a get_changes_since () request to the registry canister .
response
pb::v1::RegistryGetChangesSinceResponse
response
pb::v1::RegistryGetChangesSinceResponse