pub struct CloneClient<T> { /* private fields */ }Implementations§
Source§impl<T> CloneClient<T>where
T: Client,
impl<T> CloneClient<T>where
T: Client,
Sourcepub async fn post(&self, params: PostParams) -> Result<String, T::Error>
pub async fn post(&self, params: PostParams) -> Result<String, T::Error>
Create a container clone/copy
Permission check: and(perm(“/vms/{vmid}”, [“VM.Clone”]), or(perm(“/vms/{newid}”, [“VM.Allocate”]), perm(“/pool/{pool}”, [“VM.Allocate”], require_param=“pool”))) You need ‘VM.Clone’ permissions on /vms/{vmid}, and ‘VM.Allocate’ permissions on /vms/{newid} (or on the VM pool /pool/{pool}). You also need ‘Datastore.AllocateSpace’ on any used storage, and ‘SDN.Use’ on any bridge.
Trait Implementations§
Source§impl<T: Clone> Clone for CloneClient<T>
impl<T: Clone> Clone for CloneClient<T>
Source§fn clone(&self) -> CloneClient<T>
fn clone(&self) -> CloneClient<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for CloneClient<T>where
T: Freeze,
impl<T> RefUnwindSafe for CloneClient<T>where
T: RefUnwindSafe,
impl<T> Send for CloneClient<T>where
T: Send,
impl<T> Sync for CloneClient<T>where
T: Sync,
impl<T> Unpin for CloneClient<T>where
T: Unpin,
impl<T> UnsafeUnpin for CloneClient<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for CloneClient<T>where
T: UnwindSafe,
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