pub struct ThreadgateBuilder<'a, S: State> { /* private fields */ }Expand description
Builder for constructing an instance of this type
Implementations§
Source§impl<'a> ThreadgateBuilder<'a, Empty>
impl<'a> ThreadgateBuilder<'a, Empty>
Source§impl<'a, S: State> ThreadgateBuilder<'a, S>
impl<'a, S: State> ThreadgateBuilder<'a, S>
Sourcepub fn allow(
self,
value: impl Into<Option<Vec<ThreadgateAllowItem<'a>>>>,
) -> Self
pub fn allow( self, value: impl Into<Option<Vec<ThreadgateAllowItem<'a>>>>, ) -> Self
Set the allow field (optional)
Sourcepub fn maybe_allow(self, value: Option<Vec<ThreadgateAllowItem<'a>>>) -> Self
pub fn maybe_allow(self, value: Option<Vec<ThreadgateAllowItem<'a>>>) -> Self
Set the allow field to an Option value (optional)
Source§impl<'a, S> ThreadgateBuilder<'a, S>
impl<'a, S> ThreadgateBuilder<'a, S>
Sourcepub fn created_at(
self,
value: impl Into<Datetime>,
) -> ThreadgateBuilder<'a, SetCreatedAt<S>>
pub fn created_at( self, value: impl Into<Datetime>, ) -> ThreadgateBuilder<'a, SetCreatedAt<S>>
Set the createdAt field (required)
Source§impl<'a, S: State> ThreadgateBuilder<'a, S>
impl<'a, S: State> ThreadgateBuilder<'a, S>
Set the hiddenReplies field (optional)
Set the hiddenReplies field to an Option value (optional)
Source§impl<'a, S> ThreadgateBuilder<'a, S>
impl<'a, S> ThreadgateBuilder<'a, S>
Source§impl<'a, S> ThreadgateBuilder<'a, S>
impl<'a, S> ThreadgateBuilder<'a, S>
Sourcepub fn build(self) -> Threadgate<'a>
pub fn build(self) -> Threadgate<'a>
Build the final struct
Sourcepub fn build_with_data(
self,
extra_data: BTreeMap<SmolStr, Data<'a>>,
) -> Threadgate<'a>
pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<'a>>, ) -> Threadgate<'a>
Build the final struct with custom extra_data
Auto Trait Implementations§
impl<'a, S> Freeze for ThreadgateBuilder<'a, S>
impl<'a, S> RefUnwindSafe for ThreadgateBuilder<'a, S>
impl<'a, S> Send for ThreadgateBuilder<'a, S>
impl<'a, S> Sync for ThreadgateBuilder<'a, S>
impl<'a, S> Unpin for ThreadgateBuilder<'a, S>
impl<'a, S> UnwindSafe for ThreadgateBuilder<'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