pub struct AttributeCreateBuilder<N> { /* private fields */ }Implementations§
source§impl<N> AttributeCreateBuilder<N>
impl<N> AttributeCreateBuilder<N>
sourcepub fn slug(self, slug: impl Into<String>) -> Self
pub fn slug(self, slug: impl Into<String>) -> Self
An alphanumeric identifier for the resource unique to its type.
sourcepub fn attribute_type(self, attribute_type: AttributeType) -> Self
pub fn attribute_type(self, attribute_type: AttributeType) -> Self
Type of attribute. By default only select is supported.
sourcepub fn order_by(self, order_by: AttributeSortOrder) -> Self
pub fn order_by(self, order_by: AttributeSortOrder) -> Self
Default sort order. Options: menu_order, name, name_num and id. Default is menu_order.
sourcepub fn enable_archives(self) -> Self
pub fn enable_archives(self) -> Self
Enable/Disable attribute archives. Default is false.
source§impl AttributeCreateBuilder<WithName>
impl AttributeCreateBuilder<WithName>
pub fn build(self) -> AttributeCreate
Trait Implementations§
source§impl<N: Default> Default for AttributeCreateBuilder<N>
impl<N: Default> Default for AttributeCreateBuilder<N>
source§fn default() -> AttributeCreateBuilder<N>
fn default() -> AttributeCreateBuilder<N>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<N> Freeze for AttributeCreateBuilder<N>where
N: Freeze,
impl<N> RefUnwindSafe for AttributeCreateBuilder<N>where
N: RefUnwindSafe,
impl<N> Send for AttributeCreateBuilder<N>where
N: Send,
impl<N> Sync for AttributeCreateBuilder<N>where
N: Sync,
impl<N> Unpin for AttributeCreateBuilder<N>where
N: Unpin,
impl<N> UnwindSafe for AttributeCreateBuilder<N>where
N: UnwindSafe,
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