pub struct ReasonRepostBuilder<'a, S: State> { /* private fields */ }Expand description
Builder for constructing an instance of this type
Implementations§
Source§impl<'a> ReasonRepostBuilder<'a, Empty>
impl<'a> ReasonRepostBuilder<'a, Empty>
Source§impl<'a, S> ReasonRepostBuilder<'a, S>
impl<'a, S> ReasonRepostBuilder<'a, S>
Sourcepub fn by(
self,
value: impl Into<ProfileViewBasic<'a>>,
) -> ReasonRepostBuilder<'a, SetBy<S>>
pub fn by( self, value: impl Into<ProfileViewBasic<'a>>, ) -> ReasonRepostBuilder<'a, SetBy<S>>
Set the by field (required)
Source§impl<'a, S: State> ReasonRepostBuilder<'a, S>
impl<'a, S: State> ReasonRepostBuilder<'a, S>
Source§impl<'a, S> ReasonRepostBuilder<'a, S>
impl<'a, S> ReasonRepostBuilder<'a, S>
Sourcepub fn indexed_at(
self,
value: impl Into<Datetime>,
) -> ReasonRepostBuilder<'a, SetIndexedAt<S>>
pub fn indexed_at( self, value: impl Into<Datetime>, ) -> ReasonRepostBuilder<'a, SetIndexedAt<S>>
Set the indexedAt field (required)
Source§impl<'a, S: State> ReasonRepostBuilder<'a, S>
impl<'a, S: State> ReasonRepostBuilder<'a, S>
Source§impl<'a, S> ReasonRepostBuilder<'a, S>
impl<'a, S> ReasonRepostBuilder<'a, S>
Sourcepub fn build(self) -> ReasonRepost<'a>
pub fn build(self) -> ReasonRepost<'a>
Build the final struct
Sourcepub fn build_with_data(
self,
extra_data: BTreeMap<SmolStr, Data<'a>>,
) -> ReasonRepost<'a>
pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<'a>>, ) -> ReasonRepost<'a>
Build the final struct with custom extra_data
Auto Trait Implementations§
impl<'a, S> !Freeze for ReasonRepostBuilder<'a, S>
impl<'a, S> RefUnwindSafe for ReasonRepostBuilder<'a, S>
impl<'a, S> Send for ReasonRepostBuilder<'a, S>
impl<'a, S> Sync for ReasonRepostBuilder<'a, S>
impl<'a, S> Unpin for ReasonRepostBuilder<'a, S>
impl<'a, S> UnsafeUnpin for ReasonRepostBuilder<'a, S>
impl<'a, S> UnwindSafe for ReasonRepostBuilder<'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