Skip to main content

DropletRequest

Type Alias DropletRequest 

Source
pub type DropletRequest<M, V> = Request<M, V>;
Expand description

A type alias with Request<_, Droplet> specific functions.

Aliased Type§

pub struct DropletRequest<M, V> { /* private fields */ }

Implementations§

Source§

impl DropletRequest<Create, Droplet>

Source

pub fn ssh_keys<D>(self, val: Vec<D>) -> Self
where D: Display + Serialize,

An array containing the IDs or fingerprints of the SSH keys that you wish to embed in the Droplet’s root account upon creation.

Digital Ocean Documentation.

Source

pub fn backups(self, val: bool) -> Self

A boolean indicating whether automated backups should be enabled for the Droplet. Automated backups can only be enabled when the Droplet is created.

Digital Ocean Documentation.

Source

pub fn ipv6(self, val: bool) -> Self

A boolean indicating whether IPv6 is enabled on the Droplet.

Digital Ocean Documentation.

Source

pub fn private_networking(self, val: bool) -> Self

A boolean indicating whether private networking is enabled for the Droplet. Private networking is currently only available in certain regions.

Digital Ocean Documentation.

Source

pub fn user_data(self, val: bool) -> Self

A string containing ‘user data’ which may be used to configure the Droplet on first boot, often a ‘cloud-config’ file or Bash script. It must be plain text and may not exceed 64 KiB in size.

Digital Ocean Documentation.

Source

pub fn monitoring(self, val: bool) -> Self

A boolean indicating whether to install the DigitalOcean agent for monitoring.

Digital Ocean Documentation.

Source

pub fn volumes(self, val: Vec<String>) -> Self

A flat array including the unique string identifier for each Block Storage volume to be attached to the Droplet. At the moment a volume can only be attached to a single Droplet.

Digital Ocean Documentation.

Source

pub fn tags(self, val: Vec<String>) -> Self

A flat array of tag names as strings to apply to the Droplet after it is created. Tag names can either be existing or new tags.

Digital Ocean Documentation.

Source§

impl DropletRequest<Create, Vec<Droplet>>

Source

pub fn ssh_keys<D>(self, val: Vec<D>) -> Self
where D: Display + Serialize,

An array containing the IDs or fingerprints of the SSH keys that you wish to embed in the Droplet’s root account upon creation.

Digital Ocean Documentation.

Source

pub fn backups(self, val: bool) -> Self

A boolean indicating whether automated backups should be enabled for the Droplet. Automated backups can only be enabled when the Droplet is created.

Digital Ocean Documentation.

Source

pub fn ipv6(self, val: bool) -> Self

A boolean indicating whether IPv6 is enabled on the Droplet.

Digital Ocean Documentation.

Source

pub fn private_networking(self, val: bool) -> Self

A boolean indicating whether private networking is enabled for the Droplet. Private networking is currently only available in certain regions.

Digital Ocean Documentation.

Source

pub fn user_data(self, val: bool) -> Self

A string containing ‘user data’ which may be used to configure the Droplet on first boot, often a ‘cloud-config’ file or Bash script. It must be plain text and may not exceed 64 KiB in size.

Digital Ocean Documentation.

Source

pub fn monitoring(self, val: bool) -> Self

A boolean indicating whether to install the DigitalOcean agent for monitoring.

Digital Ocean Documentation.

Source

pub fn volumes(self, val: Vec<String>) -> Self

A flat array including the unique string identifier for each Block Storage volume to be attached to the Droplet. At the moment a volume can only be attached to a single Droplet.

Digital Ocean Documentation.

Source

pub fn tags(self, val: Vec<String>) -> Self

A flat array of tag names as strings to apply to the Droplet after it is created. Tag names can either be existing or new tags.

Digital Ocean Documentation.

Source§

impl DropletRequest<Get, Droplet>

Source§

impl DropletRequest<Get, Droplet>

Source

pub fn actions(self) -> DropletActionRequest<List, Vec<Action>>

Source

pub fn enable_backups(self) -> DropletActionRequest<Create, Action>

Source

pub fn disable_backups(self) -> DropletActionRequest<Create, Action>

Source

pub fn reboot(self) -> DropletActionRequest<Create, Action>

Source

pub fn power_cycle(self) -> DropletActionRequest<Create, Action>

Source

pub fn shutdown(self) -> DropletActionRequest<Create, Action>

Source

pub fn power(self, val: bool) -> DropletActionRequest<Create, Action>

Source

pub fn restore<D: Display>( self, image: D, ) -> DropletActionRequest<Create, Action>

Source

pub fn password_reset(self) -> DropletActionRequest<Create, Action>

Source

pub fn resize<S>( self, size: S, disk: bool, ) -> DropletActionRequest<Create, Action>
where S: AsRef<str> + Serialize + Display,

Source

pub fn rebuild<S>(self, image: S) -> DropletActionRequest<Create, Action>
where S: AsRef<str> + Serialize + Display,

Source

pub fn rename<S>(self, name: S) -> DropletActionRequest<Create, Action>
where S: AsRef<str> + Serialize + Display,

Source

pub fn kernel(self, kernel: usize) -> DropletActionRequest<Create, Action>

Source

pub fn enable_ipv6(self) -> DropletActionRequest<Create, Action>

Source

pub fn enable_private_networking(self) -> DropletActionRequest<Create, Action>

Source

pub fn snapshot<S>(self, name: S) -> DropletActionRequest<Create, Action>
where S: AsRef<str> + Serialize + Display,

Source

pub fn action(self, id: usize) -> DropletActionRequest<Get, Action>