pub struct Builder<T>(/* private fields */);
Expand description
A builder for SearchNotebooksRequest
Implementations§
Source§impl Builder<QueryStage>
impl Builder<QueryStage>
Sourcepub fn query(self, query: SearchNotebooksQuery) -> Builder<ShowDraftsStage>
pub fn query(self, query: SearchNotebooksQuery) -> Builder<ShowDraftsStage>
Sets the query
field.
Source§impl Builder<ShowDraftsStage>
impl Builder<ShowDraftsStage>
Sourcepub fn show_drafts(self, show_drafts: bool) -> Builder<Complete>
pub fn show_drafts(self, show_drafts: bool) -> Builder<Complete>
Sets the show_drafts
field.
Source§impl Builder<Complete>
impl Builder<Complete>
Sourcepub fn query(self, query: SearchNotebooksQuery) -> Self
pub fn query(self, query: SearchNotebooksQuery) -> Self
Sets the query
field.
Sourcepub fn show_drafts(self, show_drafts: bool) -> Self
pub fn show_drafts(self, show_drafts: bool) -> Self
Sets the show_drafts
field.
Sourcepub fn show_archived(self, show_archived: impl Into<Option<bool>>) -> Self
pub fn show_archived(self, show_archived: impl Into<Option<bool>>) -> Self
Sets the show_archived
field.
Sourcepub fn next_page_token(self, next_page_token: impl Into<Option<Token>>) -> Self
pub fn next_page_token(self, next_page_token: impl Into<Option<Token>>) -> Self
Sets the next_page_token
field.
Sourcepub fn build(self) -> SearchNotebooksRequest
pub fn build(self) -> SearchNotebooksRequest
Consumes the builder, returning a SearchNotebooksRequest
.
Trait Implementations§
Source§impl Default for Builder<QueryStage>
impl Default for Builder<QueryStage>
Source§impl From<SearchNotebooksRequest> for Builder<Complete>
impl From<SearchNotebooksRequest> for Builder<Complete>
Source§fn from(v: SearchNotebooksRequest) -> Self
fn from(v: SearchNotebooksRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for Builder<T>where
T: Freeze,
impl<T> RefUnwindSafe for Builder<T>where
T: RefUnwindSafe,
impl<T> Send for Builder<T>where
T: Send,
impl<T> Sync for Builder<T>where
T: Sync,
impl<T> Unpin for Builder<T>where
T: Unpin,
impl<T> UnwindSafe for Builder<T>where
T: 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