pub struct DataUIPart {
pub data_type: String,
pub id: Option<String>,
pub data: Value,
}Expand description
Custom data part.
Fields§
§data_type: StringCustom type, must start with data-.
id: Option<String>Optional stable data part ID.
data: ValueData payload.
Trait Implementations§
Source§impl Clone for DataUIPart
impl Clone for DataUIPart
Source§fn clone(&self) -> DataUIPart
fn clone(&self) -> DataUIPart
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 Debug for DataUIPart
impl Debug for DataUIPart
Source§impl<'de> Deserialize<'de> for DataUIPart
impl<'de> Deserialize<'de> for DataUIPart
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 DataUIPart
impl PartialEq for DataUIPart
Source§impl Serialize for DataUIPart
impl Serialize for DataUIPart
impl StructuralPartialEq for DataUIPart
Auto Trait Implementations§
impl Freeze for DataUIPart
impl RefUnwindSafe for DataUIPart
impl Send for DataUIPart
impl Sync for DataUIPart
impl Unpin for DataUIPart
impl UnwindSafe for DataUIPart
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