pub struct Create;
Expand description
Add a Course Unit to a draft Course.
§Authorization
- Standard +
UserScope::ManageJig
§Errors
Unauthorized
if authorization is not valid.Forbidden
if the user does not have sufficient permission to perform the action.BadRequest
if the request is missing/invalid.
Trait Implementations§
Source§impl ApiEndpoint for Create
impl ApiEndpoint for Create
Source§type Path = CreateCourseUnitPath
type Path = CreateCourseUnitPath
The path type for this endpoint.
Source§type Req = CourseUnitCreateRequest
type Req = CourseUnitCreateRequest
The request type for this endpoint.
Source§type Res = CreateResponse<CourseUnitId>
type Res = CreateResponse<CourseUnitId>
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