pub struct PaperBuilder { /* private fields */ }Expand description
Builder for constructing Paper objects
Implementations§
Source§impl PaperBuilder
impl PaperBuilder
Sourcepub fn new(
paper_id: impl Into<String>,
title: impl Into<String>,
url: impl Into<String>,
source: SourceType,
) -> Self
pub fn new( paper_id: impl Into<String>, title: impl Into<String>, url: impl Into<String>, source: SourceType, ) -> Self
Create a new builder with required fields
Set authors
Sourcepub fn abstract_text(self, abstract_text: impl Into<String>) -> Self
pub fn abstract_text(self, abstract_text: impl Into<String>) -> Self
Set abstract
Sourcepub fn published_date(self, date: impl Into<String>) -> Self
pub fn published_date(self, date: impl Into<String>) -> Self
Set publication date
Sourcepub fn updated_date(self, date: impl Into<String>) -> Self
pub fn updated_date(self, date: impl Into<String>) -> Self
Set updated date
Sourcepub fn categories(self, categories: impl Into<String>) -> Self
pub fn categories(self, categories: impl Into<String>) -> Self
Set categories
Sourcepub fn references(self, references: impl Into<String>) -> Self
pub fn references(self, references: impl Into<String>) -> Self
Set references
Trait Implementations§
Source§impl Clone for PaperBuilder
impl Clone for PaperBuilder
Source§fn clone(&self) -> PaperBuilder
fn clone(&self) -> PaperBuilder
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 moreAuto Trait Implementations§
impl Freeze for PaperBuilder
impl RefUnwindSafe for PaperBuilder
impl Send for PaperBuilder
impl Sync for PaperBuilder
impl Unpin for PaperBuilder
impl UnwindSafe for PaperBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more