pub struct BookRules {
pub book_url: Option<Rule>,
pub name: Option<Rule>,
pub author: Option<Rule>,
pub cover: Option<Rule>,
pub intro: Option<Rule>,
pub kind: Option<Rule>,
pub last_chapter: Option<Rule>,
pub toc_url: Option<Rule>,
pub word_count: Option<Rule>,
}Expand description
一本书的字段抽取规则(均可省略)。
Fields§
§book_url: Option<Rule>列表项:指向书详情页的链接(搜索/浏览结果用;bookInfo 阶段忽略)。
name: Option<Rule>§cover: Option<Rule>§intro: Option<Rule>§kind: Option<Rule>§last_chapter: Option<Rule>§toc_url: Option<Rule>§word_count: Option<Rule>Trait Implementations§
Source§impl<'de> Deserialize<'de> for BookRules
impl<'de> Deserialize<'de> for BookRules
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 BookRules
impl StructuralPartialEq for BookRules
Auto Trait Implementations§
impl Freeze for BookRules
impl RefUnwindSafe for BookRules
impl Send for BookRules
impl Sync for BookRules
impl Unpin for BookRules
impl UnsafeUnpin for BookRules
impl UnwindSafe for BookRules
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