pub struct KeyValue {
pub key: String,
pub value: Option<String>,
}
Expand description
Wrapper struct to store key values
Fields§
§key: String
§value: Option<String>
Implementations§
Trait Implementations§
source§impl Ord for KeyValue
impl Ord for KeyValue
source§impl PartialOrd for KeyValue
impl PartialOrd for KeyValue
source§impl TSerializable for KeyValue
impl TSerializable for KeyValue
source§fn read_from_in_protocol<T: TInputProtocol>(i_prot: &mut T) -> Result<KeyValue>
fn read_from_in_protocol<T: TInputProtocol>(i_prot: &mut T) -> Result<KeyValue>
Reads the struct from the input Thrift protocol
source§fn write_to_out_protocol<T: TOutputProtocol>(
&self,
o_prot: &mut T,
) -> Result<()>
fn write_to_out_protocol<T: TOutputProtocol>( &self, o_prot: &mut T, ) -> Result<()>
Writes the struct to the output Thrift protocol
impl Eq for KeyValue
impl StructuralPartialEq for KeyValue
Auto Trait Implementations§
impl Freeze for KeyValue
impl RefUnwindSafe for KeyValue
impl Send for KeyValue
impl Sync for KeyValue
impl Unpin for KeyValue
impl UnwindSafe for KeyValue
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)