/// Deserializes the arguments for a request to the get_value() function in the
/// registry canister, from protobuf.
Deserializes the arguments for a request to the get_value() function in the
registry canister, from protobuf.
Deserializes the arguments for a request to the get_value () function in the registry canister from protobuf .
pub fn deserialize_get_value_request(request: Vec<u8>) -> Result<(Vec<u8>, Option<u64>), Error> {
    match pb::v1::RegistryGetValueRequest::decode(&request[..]) {
        Ok(request) => Ok((request.key, request.version)),
        Err(error) => Err(Error::MalformedMessage(error.to_string())),
    }
}
pub fn deserialize_get_value_request ( request : Vec < u8 > ) -> Result < ( Vec < u8 > , Option < u64 > ) , Error > { match pb :: v1 :: RegistryGetValueRequest :: decode ( & request [ .. ] ) { Ok ( request ) => Ok ( ( request . key , request . version ) ) , Err ( error ) => Err ( Error :: MalformedMessage ( error . to_string ( ) ) ) , } }
Deserializes the arguments for a request to the get_value() function in the
registry canister, from protobuf.
Deserializes the arguments for a request to the get_value () function in the registry canister from protobuf .
request
Vec<u8>