pub struct Clone;
Expand description
Clone a Resource. This clones both the draft and live.
§Authorization
- One of
Admin
,AdminResource
, orManageSelfResource
§Errors
Unauthorized
if authorization is not valid.Forbidden
if the user does not have sufficient permission to perform the action.- ‘NotFound’ if the resource does not exist.
- ‘BadRequest’ if the request is malformed or the Resource is a draft.
Trait Implementations§
Source§impl ApiEndpoint for Clone
impl ApiEndpoint for Clone
Source§type Path = ResourceClonePath
type Path = ResourceClonePath
The path type for this endpoint.
Source§type Res = CreateResponse<ResourceId>
type Res = CreateResponse<ResourceId>
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 Clone
impl RefUnwindSafe for Clone
impl Send for Clone
impl Sync for Clone
impl Unpin for Clone
impl UnwindSafe for Clone
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