pub fn new<K, V>(key: K, value: V) -> Self
    where
        K: Into<Vec<u8>>,
        V: Into<Vec<u8>>,
    {
        Self {
            proto: etcdserverpb::PutRequest {
                key: key.into(),
                value: value.into(),
                lease: 0,
                prev_kv: false,
                ignore_value: false,
                ignore_lease: false,
            },
        }
    }
/// Creates a new PutRequest for saving the specified key-value.
Creates a new PutRequest for saving the specified key-value.
Creates a new PutRequest for saving the specified key - value .
pub fn new<K, V>(key: K, value: V) -> Self
    where
        K: Into<Vec<u8>>,
        V: Into<Vec<u8>>,
    {
        Self {
            proto: etcdserverpb::PutRequest {
                key: key.into(),
                value: value.into(),
                lease: 0,
                prev_kv: false,
                ignore_value: false,
                ignore_lease: false,
            },
        }
    }
pub fn new < K , V > ( key : K , value : V ) -> Self where K : Into < Vec < u8 > > , V : Into < Vec < u8 > > , { Self { proto : etcdserverpb :: PutRequest { key : key . into ( ) , value : value . into ( ) , lease : 0 , prev_kv : false , ignore_value : false , ignore_lease : false , } , } }
Creates a new PutRequest for saving the specified key-value.
Creates a new PutRequest for saving the specified key - value .
key
K
value
V
key
K
value
V