/// Shorthand to create a Precondition.
Shorthand to create a Precondition.
Shorthand to create a Precondition .
pub fn precondition(key: impl AsRef<[u8]>, version: u64) -> Precondition {
    Precondition {
        key: key.as_ref().to_vec(),
        expected_version: version,
    }
}
pub fn precondition ( key : impl AsRef < [ u8 ] > , version : u64 ) -> Precondition { Precondition { key : key . as_ref ( ) . to_vec ( ) , expected_version : version , } }
Shorthand to create a Precondition.
Shorthand to create a Precondition .
key
impl AsRef<[u8]>
version
u64