#[non_exhaustive]pub struct RagFileParsingConfig {
pub parser: Option<Parser>,
/* private fields */
}Expand description
Specifies the parsing config for RagFiles.
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.parser: Option<Parser>The parser to use for RagFiles.
Implementations§
Source§impl RagFileParsingConfig
impl RagFileParsingConfig
pub fn new() -> Self
Sourcepub fn set_parser<T: Into<Option<Parser>>>(self, v: T) -> Self
pub fn set_parser<T: Into<Option<Parser>>>(self, v: T) -> Self
Sets the value of parser.
Note that all the setters affecting parser are mutually
exclusive.
Sourcepub fn layout_parser(&self) -> Option<&Box<LayoutParser>>
pub fn layout_parser(&self) -> Option<&Box<LayoutParser>>
The value of parser
if it holds a LayoutParser, None if the field is not set or
holds a different branch.
Sourcepub fn set_layout_parser<T: Into<Box<LayoutParser>>>(self, v: T) -> Self
pub fn set_layout_parser<T: Into<Box<LayoutParser>>>(self, v: T) -> Self
Sets the value of parser
to hold a LayoutParser.
Note that all the setters affecting parser are
mutually exclusive.
Trait Implementations§
Source§impl Clone for RagFileParsingConfig
impl Clone for RagFileParsingConfig
Source§fn clone(&self) -> RagFileParsingConfig
fn clone(&self) -> RagFileParsingConfig
Returns a copy 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 RagFileParsingConfig
impl Debug for RagFileParsingConfig
Source§impl Default for RagFileParsingConfig
impl Default for RagFileParsingConfig
Source§fn default() -> RagFileParsingConfig
fn default() -> RagFileParsingConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RagFileParsingConfigwhere
RagFileParsingConfig: Default,
impl<'de> Deserialize<'de> for RagFileParsingConfigwhere
RagFileParsingConfig: Default,
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 Message for RagFileParsingConfig
impl Message for RagFileParsingConfig
Source§impl PartialEq for RagFileParsingConfig
impl PartialEq for RagFileParsingConfig
Source§impl Serialize for RagFileParsingConfig
impl Serialize for RagFileParsingConfig
impl StructuralPartialEq for RagFileParsingConfig
Auto Trait Implementations§
impl Freeze for RagFileParsingConfig
impl RefUnwindSafe for RagFileParsingConfig
impl Send for RagFileParsingConfig
impl Sync for RagFileParsingConfig
impl Unpin for RagFileParsingConfig
impl UnwindSafe for RagFileParsingConfig
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