pub struct TranslationResult {
pub val: ValueRepr,
pub subfields: Vec<SubFieldTranslationResult>,
pub kind: ValueKind,
}
Fields§
§val: ValueRepr
§subfields: Vec<SubFieldTranslationResult>
§kind: ValueKind
Implementations§
Source§impl TranslationResult
impl TranslationResult
pub fn single_string(s: impl Into<String>, kind: ValueKind) -> Self
Trait Implementations§
Source§impl Clone for TranslationResult
impl Clone for TranslationResult
Source§fn clone(&self) -> TranslationResult
fn clone(&self) -> TranslationResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'de> Deserialize<'de> for TranslationResult
impl<'de> Deserialize<'de> for TranslationResult
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 FromBytesOwned for TranslationResultwhere
Json<Self>: FromBytesOwned,
impl FromBytesOwned for TranslationResultwhere
Json<Self>: FromBytesOwned,
Source§impl Serialize for TranslationResult
impl Serialize for TranslationResult
Source§impl<'__to_bytes_a> ToBytes<'__to_bytes_a> for TranslationResult
impl<'__to_bytes_a> ToBytes<'__to_bytes_a> for TranslationResult
Auto Trait Implementations§
impl Freeze for TranslationResult
impl RefUnwindSafe for TranslationResult
impl Send for TranslationResult
impl Sync for TranslationResult
impl Unpin for TranslationResult
impl UnwindSafe for TranslationResult
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