#[non_exhaustive]pub struct TextBlock {
pub text: String,
pub citations: Vec<Citation>,
pub cache: Option<CacheHint>,
pub extras: Extras,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.text: String§citations: Vec<Citation>§cache: Option<CacheHint>§extras: ExtrasImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TextBlock
impl<'de> Deserialize<'de> for TextBlock
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 StructuralPartialEq for TextBlock
Auto Trait Implementations§
impl Forget for TextBlock
impl Freeze for TextBlockwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Citation>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<String, RawJson>>: Freeze,
PhantomData<Bucket<String, Value>>: Freeze,
impl Move for TextBlock
impl RefUnwindSafe for TextBlock
impl Send for TextBlock
impl Sync for TextBlock
impl Unpin for TextBlock
impl UnsafeUnpin for TextBlockwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Citation>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, RawJson>>: UnsafeUnpin,
PhantomData<Bucket<String, Value>>: UnsafeUnpin,
impl UnwindSafe for TextBlockwhere
RawVecInner: UnwindSafe,
BoxRaw<RawValue>: UnwindSafe,
NonNull<u8>: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
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