pub struct CreateProfile;
Expand description
Create or replace a user profile.
§Flow
§Errors
- Invalid request -
400 - Bad Request
- Missing / bad auth -
401 - Unauthorized
- User not found -
404 - Not Found
- Profile image with ID not found -
404 - Not Found
- Taken username -
409 - Conflict
- Empty username -
422 - Unprocessable Entity
Trait Implementations§
Source§impl ApiEndpoint for Create
impl ApiEndpoint for Create
Source§type Path = CreateProfilePath
type Path = CreateProfilePath
The path type for this endpoint.
Source§type Req = CreateProfileRequest
type Req = CreateProfileRequest
The request type for this endpoint.
Source§type Res = NewSessionResponse
type Res = NewSessionResponse
The response type for this endpoint.
Source§type Err = EmptyError
type Err = EmptyError
The (inner) error type for this endpoint.
Auto Trait Implementations§
impl Freeze for Create
impl RefUnwindSafe for Create
impl Send for Create
impl Sync for Create
impl Unpin for Create
impl UnwindSafe for Create
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