pub struct CollaborationStateViewBuilder<'a, S: State> { /* private fields */ }Expand description
Builder for constructing an instance of this type
Implementations§
Source§impl<'a> CollaborationStateViewBuilder<'a, Empty>
impl<'a> CollaborationStateViewBuilder<'a, Empty>
Source§impl<'a, S: State> CollaborationStateViewBuilder<'a, S>
impl<'a, S: State> CollaborationStateViewBuilder<'a, S>
Sourcepub fn canonical_uri(self, value: impl Into<Option<AtUri<'a>>>) -> Self
pub fn canonical_uri(self, value: impl Into<Option<AtUri<'a>>>) -> Self
Set the canonicalUri field (optional)
Sourcepub fn maybe_canonical_uri(self, value: Option<AtUri<'a>>) -> Self
pub fn maybe_canonical_uri(self, value: Option<AtUri<'a>>) -> Self
Set the canonicalUri field to an Option value (optional)
Source§impl<'a, S: State> CollaborationStateViewBuilder<'a, S>
impl<'a, S: State> CollaborationStateViewBuilder<'a, S>
Sourcepub fn created_at(self, value: impl Into<Option<Datetime>>) -> Self
pub fn created_at(self, value: impl Into<Option<Datetime>>) -> Self
Set the createdAt field (optional)
Sourcepub fn maybe_created_at(self, value: Option<Datetime>) -> Self
pub fn maybe_created_at(self, value: Option<Datetime>) -> Self
Set the createdAt field to an Option value (optional)
Source§impl<'a, S: State> CollaborationStateViewBuilder<'a, S>
impl<'a, S: State> CollaborationStateViewBuilder<'a, S>
Sourcepub fn first_collaborator_added_at(
self,
value: impl Into<Option<Datetime>>,
) -> Self
pub fn first_collaborator_added_at( self, value: impl Into<Option<Datetime>>, ) -> Self
Set the firstCollaboratorAddedAt field (optional)
Sourcepub fn maybe_first_collaborator_added_at(self, value: Option<Datetime>) -> Self
pub fn maybe_first_collaborator_added_at(self, value: Option<Datetime>) -> Self
Set the firstCollaboratorAddedAt field to an Option value (optional)
Source§impl<'a, S: State> CollaborationStateViewBuilder<'a, S>
impl<'a, S: State> CollaborationStateViewBuilder<'a, S>
Sourcepub fn former_participants(
self,
value: impl Into<Option<Vec<FormerCollaboratorView<'a>>>>,
) -> Self
pub fn former_participants( self, value: impl Into<Option<Vec<FormerCollaboratorView<'a>>>>, ) -> Self
Set the formerParticipants field (optional)
Sourcepub fn maybe_former_participants(
self,
value: Option<Vec<FormerCollaboratorView<'a>>>,
) -> Self
pub fn maybe_former_participants( self, value: Option<Vec<FormerCollaboratorView<'a>>>, ) -> Self
Set the formerParticipants field to an Option value (optional)
Source§impl<'a, S: State> CollaborationStateViewBuilder<'a, S>
impl<'a, S: State> CollaborationStateViewBuilder<'a, S>
Sourcepub fn has_divergence(self, value: impl Into<Option<bool>>) -> Self
pub fn has_divergence(self, value: impl Into<Option<bool>>) -> Self
Set the hasDivergence field (optional)
Sourcepub fn maybe_has_divergence(self, value: Option<bool>) -> Self
pub fn maybe_has_divergence(self, value: Option<bool>) -> Self
Set the hasDivergence field to an Option value (optional)
Source§impl<'a, S: State> CollaborationStateViewBuilder<'a, S>
impl<'a, S: State> CollaborationStateViewBuilder<'a, S>
Sourcepub fn has_former_collaborators(self, value: impl Into<Option<bool>>) -> Self
pub fn has_former_collaborators(self, value: impl Into<Option<bool>>) -> Self
Set the hasFormerCollaborators field (optional)
Sourcepub fn maybe_has_former_collaborators(self, value: Option<bool>) -> Self
pub fn maybe_has_former_collaborators(self, value: Option<bool>) -> Self
Set the hasFormerCollaborators field to an Option value (optional)
Source§impl<'a, S: State> CollaborationStateViewBuilder<'a, S>
impl<'a, S: State> CollaborationStateViewBuilder<'a, S>
Sourcepub fn has_orphaned_versions(self, value: impl Into<Option<bool>>) -> Self
pub fn has_orphaned_versions(self, value: impl Into<Option<bool>>) -> Self
Set the hasOrphanedVersions field (optional)
Sourcepub fn maybe_has_orphaned_versions(self, value: Option<bool>) -> Self
pub fn maybe_has_orphaned_versions(self, value: Option<bool>) -> Self
Set the hasOrphanedVersions field to an Option value (optional)
Source§impl<'a, S: State> CollaborationStateViewBuilder<'a, S>
impl<'a, S: State> CollaborationStateViewBuilder<'a, S>
Sourcepub fn last_synced_at(self, value: impl Into<Option<Datetime>>) -> Self
pub fn last_synced_at(self, value: impl Into<Option<Datetime>>) -> Self
Set the lastSyncedAt field (optional)
Sourcepub fn maybe_last_synced_at(self, value: Option<Datetime>) -> Self
pub fn maybe_last_synced_at(self, value: Option<Datetime>) -> Self
Set the lastSyncedAt field to an Option value (optional)
Source§impl<'a, S> CollaborationStateViewBuilder<'a, S>
impl<'a, S> CollaborationStateViewBuilder<'a, S>
Sourcepub fn participants(
self,
value: impl Into<Vec<ParticipantStateView<'a>>>,
) -> CollaborationStateViewBuilder<'a, SetParticipants<S>>
pub fn participants( self, value: impl Into<Vec<ParticipantStateView<'a>>>, ) -> CollaborationStateViewBuilder<'a, SetParticipants<S>>
Set the participants field (required)
Source§impl<'a, S: State> CollaborationStateViewBuilder<'a, S>
impl<'a, S: State> CollaborationStateViewBuilder<'a, S>
Sourcepub fn published_versions(
self,
value: impl Into<Option<Vec<PublishedVersionView<'a>>>>,
) -> Self
pub fn published_versions( self, value: impl Into<Option<Vec<PublishedVersionView<'a>>>>, ) -> Self
Set the publishedVersions field (optional)
Sourcepub fn maybe_published_versions(
self,
value: Option<Vec<PublishedVersionView<'a>>>,
) -> Self
pub fn maybe_published_versions( self, value: Option<Vec<PublishedVersionView<'a>>>, ) -> Self
Set the publishedVersions field to an Option value (optional)
Source§impl<'a, S> CollaborationStateViewBuilder<'a, S>
impl<'a, S> CollaborationStateViewBuilder<'a, S>
Sourcepub fn resource(
self,
value: impl Into<StrongRef<'a>>,
) -> CollaborationStateViewBuilder<'a, SetResource<S>>
pub fn resource( self, value: impl Into<StrongRef<'a>>, ) -> CollaborationStateViewBuilder<'a, SetResource<S>>
Set the resource field (required)
Source§impl<'a, S> CollaborationStateViewBuilder<'a, S>
impl<'a, S> CollaborationStateViewBuilder<'a, S>
Sourcepub fn status(
self,
value: impl Into<CollaborationStateViewStatus<'a>>,
) -> CollaborationStateViewBuilder<'a, SetStatus<S>>
pub fn status( self, value: impl Into<CollaborationStateViewStatus<'a>>, ) -> CollaborationStateViewBuilder<'a, SetStatus<S>>
Set the status field (required)
Source§impl<'a, S> CollaborationStateViewBuilder<'a, S>
impl<'a, S> CollaborationStateViewBuilder<'a, S>
Sourcepub fn build(self) -> CollaborationStateView<'a>
pub fn build(self) -> CollaborationStateView<'a>
Build the final struct
Sourcepub fn build_with_data(
self,
extra_data: BTreeMap<SmolStr, Data<'a>>,
) -> CollaborationStateView<'a>
pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<'a>>, ) -> CollaborationStateView<'a>
Build the final struct with custom extra_data