pub struct CollectionBuilder { /* private fields */ }
Expand description
A convenience builder for constructing CollectionDecls.
Implementations§
Source§impl CollectionBuilder
impl CollectionBuilder
pub fn new() -> Self
pub fn name(self, name: &str) -> Self
pub fn durability(self, durability: Durability) -> Self
pub fn environment(self, environment: &str) -> Self
pub fn allowed_offers(self, allowed_offers: AllowedOffers) -> Self
pub fn allow_long_names(self) -> Self
pub fn persistent_storage(self, persistent_storage: bool) -> Self
pub fn build(self) -> CollectionDecl
Trait Implementations§
Source§impl Debug for CollectionBuilder
impl Debug for CollectionBuilder
Source§impl Default for CollectionBuilder
impl Default for CollectionBuilder
Source§impl From<CollectionBuilder> for CollectionDecl
impl From<CollectionBuilder> for CollectionDecl
Source§fn from(builder: CollectionBuilder) -> Self
fn from(builder: CollectionBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CollectionBuilder
impl RefUnwindSafe for CollectionBuilder
impl Send for CollectionBuilder
impl Sync for CollectionBuilder
impl Unpin for CollectionBuilder
impl UnwindSafe for CollectionBuilder
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