Type Definition digitalocean::request::VolumeRequest
source · pub type VolumeRequest<M, V> = Request<M, V>;
Expand description
A type alias with Request<_, Volume>
specific functions.
Implementations§
source§impl VolumeRequest<Get, Volume>
impl VolumeRequest<Get, Volume>
source§impl VolumeRequest<Create, Volume>
impl VolumeRequest<Create, Volume>
sourcepub fn description<S>(self, val: S) -> Selfwhere
S: AsRef<str> + Serialize + Display,
pub fn description<S>(self, val: S) -> Selfwhere
S: AsRef<str> + Serialize + Display,
An optional free-form text field to describe a Block Storage volume.
sourcepub fn region<S>(self, val: S) -> Selfwhere
S: AsRef<str> + Serialize + Display,
pub fn region<S>(self, val: S) -> Selfwhere
S: AsRef<str> + Serialize + Display,
The region where the Block Storage volume will be created. When setting a region, the value should be the slug identifier for the region. When you query a Block Storage volume, the entire region object will be returned.
Note: Should not be specified with a snapshot_id
.