pub fn deserialize_atomic_mutate_response(response: Vec<u8>) -> Result<u64, Vec<Error>> {
    let response: pb::v1::RegistryAtomicMutateResponse =
        pb::v1::RegistryAtomicMutateResponse::decode(&response[..]).unwrap();

    let mut errors = Vec::new();
    for error in response.errors {
        errors.push(Error::from(error));
    }

    if !errors.is_empty() {
        return Err(errors);
    }

    Ok(response.version)
}
/// Deserializes the response obtained from the registry canister for a get()
/// call from protobuf.
Deserializes the response obtained from the registry canister for a get()
call from protobuf.
Deserializes the response obtained from the registry canister for a get () call from protobuf .
pub fn deserialize_atomic_mutate_response(response: Vec<u8>) -> Result<u64, Vec<Error>> {
    let response: pb::v1::RegistryAtomicMutateResponse =
        pb::v1::RegistryAtomicMutateResponse::decode(&response[..]).unwrap();
    let mut errors = Vec::new();
    for error in response.errors {
        errors.push(Error::from(error));
    }
    if !errors.is_empty() {
        return Err(errors);
    }
    Ok(response.version)
}
pub fn deserialize_atomic_mutate_response ( response : Vec < u8 > ) -> Result < u64 , Vec < Error > > { let response : pb :: v1 :: RegistryAtomicMutateResponse = pb :: v1 :: RegistryAtomicMutateResponse :: decode ( & response [ .. ] ) . unwrap ( ) ; let mut errors = Vec :: new ( ) ; for error in response . errors { errors . push ( Error :: from ( error ) ) ; } if ! errors . is_empty ( ) { return Err ( errors ) ; } Ok ( response . version ) }
Deserializes the response obtained from the registry canister for a get()
call from protobuf.
Deserializes the response obtained from the registry canister for a get () call from protobuf .
response
Vec<u8>
response
Vec<u8>