Struct crates_io_api::CratesQueryBuilder
source · pub struct CratesQueryBuilder { /* private fields */ }
Expand description
Builder that enables easy construction of a CratesQuery
.
Implementations§
source§impl CratesQueryBuilder
impl CratesQueryBuilder
sourcepub fn category(self, category: impl Into<String>) -> Self
pub fn category(self, category: impl Into<String>) -> Self
Crates.io category name. See https://crates.io/categories NOTE: requires lower-case dash-separated categories, not the pretty titles visible in the listing linked above.
sourcepub fn build(self) -> CratesQuery
pub fn build(self) -> CratesQuery
Finalize the builder into a usable CratesQuery
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CratesQueryBuilder
impl RefUnwindSafe for CratesQueryBuilder
impl Send for CratesQueryBuilder
impl Sync for CratesQueryBuilder
impl Unpin for CratesQueryBuilder
impl UnwindSafe for CratesQueryBuilder
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