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