pub struct ProfileDataViewBuilder<'a, S: State> { /* private fields */ }Expand description
Builder for constructing an instance of this type
Implementations§
Source§impl<'a> ProfileDataViewBuilder<'a, Empty>
impl<'a> ProfileDataViewBuilder<'a, Empty>
Source§impl<'a, S: State> ProfileDataViewBuilder<'a, S>
impl<'a, S: State> ProfileDataViewBuilder<'a, S>
Sourcepub fn collaboration_count(self, value: impl Into<Option<i64>>) -> Self
pub fn collaboration_count(self, value: impl Into<Option<i64>>) -> Self
Set the collaborationCount field (optional)
Sourcepub fn maybe_collaboration_count(self, value: Option<i64>) -> Self
pub fn maybe_collaboration_count(self, value: Option<i64>) -> Self
Set the collaborationCount field to an Option value (optional)
Source§impl<'a, S: State> ProfileDataViewBuilder<'a, S>
impl<'a, S: State> ProfileDataViewBuilder<'a, S>
Sourcepub fn entry_count(self, value: impl Into<Option<i64>>) -> Self
pub fn entry_count(self, value: impl Into<Option<i64>>) -> Self
Set the entryCount field (optional)
Sourcepub fn maybe_entry_count(self, value: Option<i64>) -> Self
pub fn maybe_entry_count(self, value: Option<i64>) -> Self
Set the entryCount field to an Option value (optional)
Source§impl<'a, S: State> ProfileDataViewBuilder<'a, S>
impl<'a, S: State> ProfileDataViewBuilder<'a, S>
Sourcepub fn follower_count(self, value: impl Into<Option<i64>>) -> Self
pub fn follower_count(self, value: impl Into<Option<i64>>) -> Self
Set the followerCount field (optional)
Sourcepub fn maybe_follower_count(self, value: Option<i64>) -> Self
pub fn maybe_follower_count(self, value: Option<i64>) -> Self
Set the followerCount field to an Option value (optional)
Source§impl<'a, S: State> ProfileDataViewBuilder<'a, S>
impl<'a, S: State> ProfileDataViewBuilder<'a, S>
Sourcepub fn following_count(self, value: impl Into<Option<i64>>) -> Self
pub fn following_count(self, value: impl Into<Option<i64>>) -> Self
Set the followingCount field (optional)
Sourcepub fn maybe_following_count(self, value: Option<i64>) -> Self
pub fn maybe_following_count(self, value: Option<i64>) -> Self
Set the followingCount field to an Option value (optional)
Source§impl<'a, S> ProfileDataViewBuilder<'a, S>
impl<'a, S> ProfileDataViewBuilder<'a, S>
Sourcepub fn inner(
self,
value: impl Into<ProfileDataViewInner<'a>>,
) -> ProfileDataViewBuilder<'a, SetInner<S>>
pub fn inner( self, value: impl Into<ProfileDataViewInner<'a>>, ) -> ProfileDataViewBuilder<'a, SetInner<S>>
Set the inner field (required)
Source§impl<'a, S: State> ProfileDataViewBuilder<'a, S>
impl<'a, S: State> ProfileDataViewBuilder<'a, S>
Sourcepub fn notebook_count(self, value: impl Into<Option<i64>>) -> Self
pub fn notebook_count(self, value: impl Into<Option<i64>>) -> Self
Set the notebookCount field (optional)
Sourcepub fn maybe_notebook_count(self, value: Option<i64>) -> Self
pub fn maybe_notebook_count(self, value: Option<i64>) -> Self
Set the notebookCount field to an Option value (optional)
Source§impl<'a, S: State> ProfileDataViewBuilder<'a, S>
impl<'a, S: State> ProfileDataViewBuilder<'a, S>
Sourcepub fn viewer(self, value: impl Into<Option<ViewerState<'a>>>) -> Self
pub fn viewer(self, value: impl Into<Option<ViewerState<'a>>>) -> Self
Set the viewer field (optional)
Sourcepub fn maybe_viewer(self, value: Option<ViewerState<'a>>) -> Self
pub fn maybe_viewer(self, value: Option<ViewerState<'a>>) -> Self
Set the viewer field to an Option value (optional)
Source§impl<'a, S> ProfileDataViewBuilder<'a, S>
impl<'a, S> ProfileDataViewBuilder<'a, S>
Sourcepub fn build(self) -> ProfileDataView<'a>
pub fn build(self) -> ProfileDataView<'a>
Build the final struct
Sourcepub fn build_with_data(
self,
extra_data: BTreeMap<SmolStr, Data<'a>>,
) -> ProfileDataView<'a>
pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<'a>>, ) -> ProfileDataView<'a>
Build the final struct with custom extra_data
Auto Trait Implementations§
impl<'a, S> !Freeze for ProfileDataViewBuilder<'a, S>
impl<'a, S> RefUnwindSafe for ProfileDataViewBuilder<'a, S>
impl<'a, S> Send for ProfileDataViewBuilder<'a, S>
impl<'a, S> Sync for ProfileDataViewBuilder<'a, S>
impl<'a, S> Unpin for ProfileDataViewBuilder<'a, S>
impl<'a, S> UnsafeUnpin for ProfileDataViewBuilder<'a, S>
impl<'a, S> UnwindSafe for ProfileDataViewBuilder<'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