pub fn serialize_atomic_mutate_request(
    mutations: Vec<RegistryMutation>,
    preconditions: Vec<Precondition>,
) -> Vec<u8> {
    let mut request: pb::v1::RegistryAtomicMutateRequest =
        pb::v1::RegistryAtomicMutateRequest::default();

    for mutation in mutations {
        request.mutations.push(mutation);
    }
    for precondition in preconditions {
        request.preconditions.push(precondition);
    }

    let mut buf = Vec::new();
    request.encode(&mut buf).unwrap();

    buf
}
/// Serializes the arguments for a request to the insert() function in the
/// registry canister, into protobuf.
Serializes the arguments for a request to the insert() function in the
registry canister, into protobuf.
Serializes the arguments for a request to the insert () function in the registry canister into protobuf .
pub fn serialize_atomic_mutate_request(
    mutations: Vec<RegistryMutation>,
    preconditions: Vec<Precondition>,
) -> Vec<u8> {
    let mut request: pb::v1::RegistryAtomicMutateRequest =
        pb::v1::RegistryAtomicMutateRequest::default();
    for mutation in mutations {
        request.mutations.push(mutation);
    }
    for precondition in preconditions {
        request.preconditions.push(precondition);
    }
    let mut buf = Vec::new();
    request.encode(&mut buf).unwrap();
    buf
}
pub fn serialize_atomic_mutate_request ( mutations : Vec < RegistryMutation > , preconditions : Vec < Precondition > , ) -> Vec < u8 > { let mut request : pb :: v1 :: RegistryAtomicMutateRequest = pb :: v1 :: RegistryAtomicMutateRequest :: default ( ) ; for mutation in mutations { request . mutations . push ( mutation ) ; } for precondition in preconditions { request . preconditions . push ( precondition ) ; } let mut buf = Vec :: new ( ) ; request . encode ( & mut buf ) . unwrap ( ) ; buf }
Serializes the arguments for a request to the insert() function in the
registry canister, into protobuf.
Serializes the arguments for a request to the insert () function in the registry canister into protobuf .
mutations
Vec<RegistryMutation>
preconditions
Vec<Precondition>
mutations
Vec<RegistryMutation>
preconditions
Vec<Precondition>