pub struct StringPair {
pub left: Option<String>,
pub right: Option<String>,
}Expand description
字符串键值对(镜像 Java org.apache.commons.lang3.tuple.Pair 的
Gson 反射线格式 {"left": ..., "right": ...})。
Fields§
§left: Option<String>§right: Option<String>Trait Implementations§
Source§impl Clone for StringPair
impl Clone for StringPair
Source§fn clone(&self) -> StringPair
fn clone(&self) -> StringPair
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StringPair
impl Debug for StringPair
Source§impl Default for StringPair
impl Default for StringPair
Source§fn default() -> StringPair
fn default() -> StringPair
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StringPair
impl<'de> Deserialize<'de> for StringPair
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StringPair
impl PartialEq for StringPair
Source§impl Serialize for StringPair
impl Serialize for StringPair
impl StructuralPartialEq for StringPair
Auto Trait Implementations§
impl Freeze for StringPair
impl RefUnwindSafe for StringPair
impl Send for StringPair
impl Sync for StringPair
impl Unpin for StringPair
impl UnsafeUnpin for StringPair
impl UnwindSafe for StringPair
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