pub struct create_achievement;Expand description
Create a new achievement (admin only)
POST /achievements
§Request Body
- organization_id: UUID
- category: AchievementCategory
- tier: AchievementTier
- name: String (3-100 chars)
- description: String (10-500 chars)
- icon: String (emoji or URL)
- points_value: i32 (0-1000)
- requirements: String (JSON criteria)
- is_secret: bool
- is_repeatable: bool
- display_order: i32
§Responses
- 201 Created: Achievement created successfully
- 400 Bad Request: Validation error
Trait Implementations§
Auto Trait Implementations§
impl Freeze for create_achievement
impl RefUnwindSafe for create_achievement
impl Send for create_achievement
impl Sync for create_achievement
impl Unpin for create_achievement
impl UnwindSafe for create_achievement
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
§impl<T> Chain<T> for T
impl<T> Chain<T> for T
§impl<T> Fake for T
impl<T> Fake for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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.