#[non_exhaustive]pub struct DocumentBlock {
pub type_: DocumentBlockType,
pub source: DocumentSource,
pub cache_control: Option<CacheControl>,
pub citations: Option<CitationsConfig>,
pub context: Option<String>,
pub title: Option<String>,
pub rest: Rest,
}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.type_: DocumentBlockType§source: DocumentSource§cache_control: Option<CacheControl>§citations: Option<CitationsConfig>§context: Option<String>§title: Option<String>§rest: RestImplementations§
Source§impl DocumentBlock
impl DocumentBlock
Sourcepub fn builder(
type_: DocumentBlockType,
source: DocumentSource,
) -> DocumentBlockBuilder
pub fn builder( type_: DocumentBlockType, source: DocumentSource, ) -> DocumentBlockBuilder
Start a builder by supplying the required fields in declaration order.
Trait Implementations§
Source§impl Clone for DocumentBlock
impl Clone for DocumentBlock
Source§impl Debug for DocumentBlock
impl Debug for DocumentBlock
Source§impl DeclaredFields for DocumentBlock
impl DeclaredFields for DocumentBlock
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for DocumentBlock
impl<'de> Deserialize<'de> for DocumentBlock
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 DocumentBlock
Source§impl PartialEq for DocumentBlock
impl PartialEq for DocumentBlock
Source§impl Serialize for DocumentBlock
impl Serialize for DocumentBlock
impl StructuralPartialEq for DocumentBlock
Auto Trait Implementations§
impl Freeze for DocumentBlock
impl RefUnwindSafe for DocumentBlock
impl Send for DocumentBlock
impl Sync for DocumentBlock
impl Unpin for DocumentBlock
impl UnsafeUnpin for DocumentBlock
impl UnwindSafe for DocumentBlock
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