pub struct TextValuePayload {
pub text: String,
pub language: Option<String>,
}Fields§
§text: String§language: Option<String>BCP-47 language tag, when known.
Trait Implementations§
Source§impl Clone for TextValuePayload
impl Clone for TextValuePayload
Source§impl Debug for TextValuePayload
impl Debug for TextValuePayload
Source§impl<'de> Deserialize<'de> for TextValuePayload
impl<'de> Deserialize<'de> for TextValuePayload
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
impl Eq for TextValuePayload
Source§impl FromSchema for TextValuePayload
impl FromSchema for TextValuePayload
fn from_value(value: &SchemaValue) -> Result<Self, FromSchemaError>
Source§impl IntoSchema for TextValuePayload
impl IntoSchema for TextValuePayload
fn type_id() -> TypeId
fn register_in(builder: &mut SchemaBuilder) -> SchemaType
fn to_value(&self) -> SchemaValue
Source§impl PartialEq for TextValuePayload
impl PartialEq for TextValuePayload
Source§impl Serialize for TextValuePayload
impl Serialize for TextValuePayload
impl StructuralPartialEq for TextValuePayload
Auto Trait Implementations§
impl Freeze for TextValuePayload
impl RefUnwindSafe for TextValuePayload
impl Send for TextValuePayload
impl Sync for TextValuePayload
impl Unpin for TextValuePayload
impl UnsafeUnpin for TextValuePayload
impl UnwindSafe for TextValuePayload
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