pub struct VolumeEdit {
pub writer: Field<Uuid>,
pub account: Option<Uuid>,
pub lock: Option<bool>,
}Fields§
§writer: Field<Uuid>Which plugin UUID is allowed to write snapshots for this volume.
When missing, it doesn’t change anything. When None, it removes the
write field, meaning that anyone can write to it. When a UUID, that is the
new exclusive writer.
account: Option<Uuid>When set, transfers ownership of this volume to another account.
lock: Option<bool>Set this volume locked, this prevents pushing of new snapshots.
Trait Implementations§
Source§impl Clone for VolumeEdit
impl Clone for VolumeEdit
Source§fn clone(&self) -> VolumeEdit
fn clone(&self) -> VolumeEdit
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VolumeEdit
impl Debug for VolumeEdit
Source§impl<'de> Deserialize<'de> for VolumeEdit
impl<'de> Deserialize<'de> for VolumeEdit
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for VolumeEdit
impl RefUnwindSafe for VolumeEdit
impl Send for VolumeEdit
impl Sync for VolumeEdit
impl Unpin for VolumeEdit
impl UnwindSafe for VolumeEdit
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