pub fn serialize_get_changes_since_request(version: u64) -> Result<Vec<u8>, Error> {
    let request = pb::v1::RegistryGetChangesSinceRequest { version };
    let mut buf = Vec::new();
    match request.encode(&mut buf) {
        Ok(_) => Ok(buf),
        Err(error) => Err(Error::MalformedMessage(error.to_string())),
    }
}
/// Serializes a request 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 request 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 request 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_request(version: u64) -> Result<Vec<u8>, Error> {
    let request = pb::v1::RegistryGetChangesSinceRequest { version };
    let mut buf = Vec::new();
    match request.encode(&mut buf) {
        Ok(_) => Ok(buf),
        Err(error) => Err(Error::MalformedMessage(error.to_string())),
    }
}
pub fn serialize_get_changes_since_request ( version : u64 ) -> Result < Vec < u8 > , Error > { let request = pb :: v1 :: RegistryGetChangesSinceRequest { version } ; let mut buf = Vec :: new ( ) ; match request . encode ( & mut buf ) { Ok ( _ ) => Ok ( buf ) , Err ( error ) => Err ( Error :: MalformedMessage ( error . to_string ( ) ) ) , } }
Serializes a request for a get_changes_since() request to the registry
canister.
Serializes a request for a get_changes_since () request to the registry canister .
version
u64
version
u64