pub fn deserialize_get_changes_since_response(
    response: Vec<u8>,
) -> Result<(Vec<RegistryDelta>, u64), Error> {
    match pb::v1::RegistryGetChangesSinceResponse::decode(&response[..]) {
        Ok(response) => Ok((response.deltas, response.version)),
        Err(error) => Err(Error::MalformedMessage(error.to_string())),
    }
}
/// Deserializes the response obtained from the registry canister for a
/// get_changes_since() call, from protobuf.
Deserializes the response obtained from the registry canister for a
get_changes_since() call, from protobuf.
Deserializes the response obtained from the registry canister for a get_changes_since () call from protobuf .
pub fn deserialize_get_changes_since_response(
    response: Vec<u8>,
) -> Result<(Vec<RegistryDelta>, u64), Error> {
    match pb::v1::RegistryGetChangesSinceResponse::decode(&response[..]) {
        Ok(response) => Ok((response.deltas, response.version)),
        Err(error) => Err(Error::MalformedMessage(error.to_string())),
    }
}
pub fn deserialize_get_changes_since_response ( response : Vec < u8 > , ) -> Result < ( Vec < RegistryDelta > , u64 ) , Error > { match pb :: v1 :: RegistryGetChangesSinceResponse :: decode ( & response [ .. ] ) { Ok ( response ) => Ok ( ( response . deltas , response . version ) ) , Err ( error ) => Err ( Error :: MalformedMessage ( error . to_string ( ) ) ) , } }
Deserializes the response obtained from the registry canister for a
get_changes_since() call, from protobuf.
Deserializes the response obtained from the registry canister for a get_changes_since () call from protobuf .
response
Vec<u8>
response
Vec<u8>