pub struct NonStandardContentBlock {
pub block_type: String,
pub id: Option<String>,
pub value: HashMap<String, Value>,
pub index: Option<BlockIndex>,
}Expand description
Provider-specific content data.
This block contains data for which there is not yet a standard type.
Fields§
§block_type: StringType of the content block. Always “non_standard”.
id: Option<String>Content block identifier.
value: HashMap<String, Value>Provider-specific content data.
index: Option<BlockIndex>Index of block in aggregate response. Used during streaming.
Implementations§
Trait Implementations§
Source§impl Clone for NonStandardContentBlock
impl Clone for NonStandardContentBlock
Source§fn clone(&self) -> NonStandardContentBlock
fn clone(&self) -> NonStandardContentBlock
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 NonStandardContentBlock
impl Debug for NonStandardContentBlock
Source§impl<'de> Deserialize<'de> for NonStandardContentBlock
impl<'de> Deserialize<'de> for NonStandardContentBlock
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 NonStandardContentBlock
impl PartialEq for NonStandardContentBlock
Source§impl Serialize for NonStandardContentBlock
impl Serialize for NonStandardContentBlock
impl StructuralPartialEq for NonStandardContentBlock
Auto Trait Implementations§
impl Freeze for NonStandardContentBlock
impl RefUnwindSafe for NonStandardContentBlock
impl Send for NonStandardContentBlock
impl Sync for NonStandardContentBlock
impl Unpin for NonStandardContentBlock
impl UnwindSafe for NonStandardContentBlock
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