pub struct NewCategory {
pub name: String,
pub slug: String,
pub description: String,
pub featured_image_id: Option<i64>,
pub thumbnail_id: Option<i64>,
pub parent_id: Option<i64>,
}Expand description
A new category’s base fields (extension fields are saved separately by the handler, keyed on the returned id).
Fields§
§name: String§slug: String§description: String§featured_image_id: Option<i64>§thumbnail_id: Option<i64>§parent_id: Option<i64>Trait Implementations§
Source§impl Clone for NewCategory
impl Clone for NewCategory
Source§impl Debug for NewCategory
impl Debug for NewCategory
Auto Trait Implementations§
impl Forget for NewCategory
impl Freeze for NewCategory
impl RefUnwindSafe for NewCategory
impl Send for NewCategory
impl Sync for NewCategory
impl Unpin for NewCategory
impl UnsafeUnpin for NewCategory
impl UnwindSafe for NewCategory
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.