/// Parse big-endian UUID from protobuf.
Parse big-endian UUID from protobuf.
Parse big - endian UUID from protobuf .
pub fn parse_uuid(bytes: &[u8]) -> Result<Option<Uuid>> {
    if bytes.is_empty() {
        Ok(None)
    } else {
        let uuid = Uuid::from_slice(bytes).context(UuidParseSnafu {})?;
        Ok(Some(uuid))
    }
}
pub fn parse_uuid ( bytes : & [ u8 ] ) -> Result < Option < Uuid > > { if bytes . is_empty ( ) { Ok ( None ) } else { let uuid = Uuid :: from_slice ( bytes ) . context ( UuidParseSnafu { } ) ? ; Ok ( Some ( uuid ) ) } }
Parse big-endian UUID from protobuf.
Parse big - endian UUID from protobuf .
bytes
&[u8]