pub struct DraftBuilder<'a, S: State> { /* private fields */ }Expand description
Builder for constructing an instance of this type
Implementations§
Source§impl<'a> DraftBuilder<'a, Empty>
impl<'a> DraftBuilder<'a, Empty>
Source§impl<'a, S: State> DraftBuilder<'a, S>
impl<'a, S: State> DraftBuilder<'a, S>
Source§impl<'a, S: State> DraftBuilder<'a, S>
impl<'a, S: State> DraftBuilder<'a, S>
Sourcepub fn device_name(self, value: impl Into<Option<CowStr<'a>>>) -> Self
pub fn device_name(self, value: impl Into<Option<CowStr<'a>>>) -> Self
Set the deviceName field (optional)
Sourcepub fn maybe_device_name(self, value: Option<CowStr<'a>>) -> Self
pub fn maybe_device_name(self, value: Option<CowStr<'a>>) -> Self
Set the deviceName field to an Option value (optional)
Source§impl<'a, S: State> DraftBuilder<'a, S>
impl<'a, S: State> DraftBuilder<'a, S>
Source§impl<'a, S: State> DraftBuilder<'a, S>
impl<'a, S: State> DraftBuilder<'a, S>
Sourcepub fn postgate_embedding_rules(
self,
value: impl Into<Option<Vec<DisableRule<'a>>>>,
) -> Self
pub fn postgate_embedding_rules( self, value: impl Into<Option<Vec<DisableRule<'a>>>>, ) -> Self
Set the postgateEmbeddingRules field (optional)
Sourcepub fn maybe_postgate_embedding_rules(
self,
value: Option<Vec<DisableRule<'a>>>,
) -> Self
pub fn maybe_postgate_embedding_rules( self, value: Option<Vec<DisableRule<'a>>>, ) -> Self
Set the postgateEmbeddingRules field to an Option value (optional)
Source§impl<'a, S> DraftBuilder<'a, S>
impl<'a, S> DraftBuilder<'a, S>
Source§impl<'a, S: State> DraftBuilder<'a, S>
impl<'a, S: State> DraftBuilder<'a, S>
Sourcepub fn threadgate_allow(
self,
value: impl Into<Option<Vec<DraftThreadgateAllowItem<'a>>>>,
) -> Self
pub fn threadgate_allow( self, value: impl Into<Option<Vec<DraftThreadgateAllowItem<'a>>>>, ) -> Self
Set the threadgateAllow field (optional)
Sourcepub fn maybe_threadgate_allow(
self,
value: Option<Vec<DraftThreadgateAllowItem<'a>>>,
) -> Self
pub fn maybe_threadgate_allow( self, value: Option<Vec<DraftThreadgateAllowItem<'a>>>, ) -> Self
Set the threadgateAllow field to an Option value (optional)
Auto Trait Implementations§
impl<'a, S> Freeze for DraftBuilder<'a, S>
impl<'a, S> RefUnwindSafe for DraftBuilder<'a, S>
impl<'a, S> Send for DraftBuilder<'a, S>
impl<'a, S> Sync for DraftBuilder<'a, S>
impl<'a, S> Unpin for DraftBuilder<'a, S>
impl<'a, S> UnsafeUnpin for DraftBuilder<'a, S>
impl<'a, S> UnwindSafe for DraftBuilder<'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