pub struct MoveVolumeClient<T> { /* private fields */ }Implementations§
Source§impl<T> MoveVolumeClient<T>where
T: Client,
impl<T> MoveVolumeClient<T>where
T: Client,
Source§impl<T> MoveVolumeClient<T>where
T: Client,
impl<T> MoveVolumeClient<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>
Move a rootfs-/mp-volume to a different storage or to a different container.
Permission check: perm(“/vms/{vmid}”, [“VM.Config.Disk”]) You need ‘VM.Config.Disk’ permissions on /vms/{vmid}, and ‘Datastore.AllocateSpace’ permissions on the storage. To move a volume to another container, you need the permissions on the target container as well.
Trait Implementations§
Source§impl<T: Clone> Clone for MoveVolumeClient<T>
impl<T: Clone> Clone for MoveVolumeClient<T>
Source§fn clone(&self) -> MoveVolumeClient<T>
fn clone(&self) -> MoveVolumeClient<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 MoveVolumeClient<T>where
T: Freeze,
impl<T> RefUnwindSafe for MoveVolumeClient<T>where
T: RefUnwindSafe,
impl<T> Send for MoveVolumeClient<T>where
T: Send,
impl<T> Sync for MoveVolumeClient<T>where
T: Sync,
impl<T> Unpin for MoveVolumeClient<T>where
T: Unpin,
impl<T> UnsafeUnpin for MoveVolumeClient<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for MoveVolumeClient<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