pub struct CollectionSummaryBuilder<'a, S: State> { /* private fields */ }Expand description
Builder for constructing an instance of this type
Implementations§
Source§impl<'a> CollectionSummaryBuilder<'a, Empty>
impl<'a> CollectionSummaryBuilder<'a, Empty>
Source§impl<'a, S> CollectionSummaryBuilder<'a, S>
impl<'a, S> CollectionSummaryBuilder<'a, S>
Sourcepub fn collection(
self,
value: impl Into<CowStr<'a>>,
) -> CollectionSummaryBuilder<'a, SetCollection<S>>
pub fn collection( self, value: impl Into<CowStr<'a>>, ) -> CollectionSummaryBuilder<'a, SetCollection<S>>
Set the collection field (required)
Source§impl<'a, S> CollectionSummaryBuilder<'a, S>
impl<'a, S> CollectionSummaryBuilder<'a, S>
Sourcepub fn estimated_repos(
self,
value: impl Into<i64>,
) -> CollectionSummaryBuilder<'a, SetEstimatedRepos<S>>
pub fn estimated_repos( self, value: impl Into<i64>, ) -> CollectionSummaryBuilder<'a, SetEstimatedRepos<S>>
Set the estimatedRepos field (required)
Source§impl<'a, S> CollectionSummaryBuilder<'a, S>
impl<'a, S> CollectionSummaryBuilder<'a, S>
Sourcepub fn is_external(
self,
value: impl Into<bool>,
) -> CollectionSummaryBuilder<'a, SetIsExternal<S>>
pub fn is_external( self, value: impl Into<bool>, ) -> CollectionSummaryBuilder<'a, SetIsExternal<S>>
Set the isExternal field (required)
Source§impl<'a, S> CollectionSummaryBuilder<'a, S>
impl<'a, S> CollectionSummaryBuilder<'a, S>
Sourcepub fn build(self) -> CollectionSummary<'a>
pub fn build(self) -> CollectionSummary<'a>
Build the final struct
Sourcepub fn build_with_data(
self,
extra_data: BTreeMap<SmolStr, Data<'a>>,
) -> CollectionSummary<'a>
pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<'a>>, ) -> CollectionSummary<'a>
Build the final struct with custom extra_data
Auto Trait Implementations§
impl<'a, S> Freeze for CollectionSummaryBuilder<'a, S>
impl<'a, S> RefUnwindSafe for CollectionSummaryBuilder<'a, S>
impl<'a, S> Send for CollectionSummaryBuilder<'a, S>
impl<'a, S> Sync for CollectionSummaryBuilder<'a, S>
impl<'a, S> Unpin for CollectionSummaryBuilder<'a, S>
impl<'a, S> UnsafeUnpin for CollectionSummaryBuilder<'a, S>
impl<'a, S> UnwindSafe for CollectionSummaryBuilder<'a, S>
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