pub struct Request<A, R>where
    A: Method,
{ /* private fields */ }
Expand description

A consuming builder which can be used to build up API calls.

In general consumers of the crate should not need to use this type directly. Instead, build up requests from what is found in api::*.

Implementations§

The full PEM-formatted trust chain between the certificate authority’s certificate and your domain’s SSL certificate.

Digital Ocean Documentation.

The priority for SRV and MX records.

Digital Ocean Documentation.

The port for SRV records.

Digital Ocean Documentation.

This value is the time to live for the record, in seconds. This defines the time frame that clients can cache queried information before a refresh should be requested.

Digital Ocean Documentation.

The weight for SRV records.

Digital Ocean Documentation.

The record type (A, MX, CNAME, etc).

Digital Ocean Documentation.

The host name, alias, or service being defined by the record.

Digital Ocean Documentation.

Variable data depending on record type. See the Domain Records section for more detail on each record type.

Digital Ocean Documentation.

The priority for SRV and MX records.

Digital Ocean Documentation.

The port for SRV records.

Digital Ocean Documentation.

This value is the time to live for the record, in seconds. This defines the time frame that clients can cache queried information before a refresh should be requested.

Digital Ocean Documentation.

The weight for SRV records.

Digital Ocean Documentation.

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.

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.

A boolean indicating whether IPv6 is enabled on the Droplet.

Digital Ocean Documentation.

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

Digital Ocean Documentation.

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.

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

Digital Ocean Documentation.

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.

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.

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.

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.

A boolean indicating whether IPv6 is enabled on the Droplet.

Digital Ocean Documentation.

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

Digital Ocean Documentation.

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.

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

Digital Ocean Documentation.

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.

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.

The new name that you would like to use for the image.

Digital Ocean Documentation.

The load balancing algorithm used to determine which backend Droplet will be selected by a client. It must be either “round_robin” or “least_connections”. The default value is “round_robin”.

Digital Ocean Documentation.

An array of objects specifying the forwarding rules for a Load Balancer. At least one forwarding rule is required when creating a new Load Balancer instance.

Digital Ocean Documentation.

The (optional) health check settings.

Digital Ocean Documentation.

The (optional) sticky sessions settings. kind must be cookies or none. If kind is cookies then cookie_name and cookie_ttl_seconds should be set as well.

Digital Ocean Documentation.

A boolean value indicating whether HTTP requests to the Load Balancer on port 80 will be redirected to HTTPS on port 443. Default value is false.

Digital Ocean Documentation.

The IDs of the Droplets to be assigned to the Load Balancer.

Note: Not intended to be used alongside the tag function.

Digital Ocean Documentation.

The name of a Droplet tag corresponding to Droplets to be assigned to the Load Balancer.

Note: Not intended to be used alongside the droplets function.

Digital Ocean Documentation.

A human-readable name for a Load Balancer instance.

Digital Ocean Documentation.

The region where the Load Balancer instance will be located.

Digital Ocean Documentation.

The load balancing algorithm used to determine which backend Droplet will be selected by a client. It must be either “round_robin” or “least_connections”. The default value is “round_robin”.

Digital Ocean Documentation.

An array of objects specifying the forwarding rules for a Load Balancer. At least one forwarding rule is required when creating a new Load Balancer instance.

Digital Ocean Documentation.

The (optional) health check settings.

Digital Ocean Documentation.

The (optional) sticky sessions settings. kind must be cookies or none. If kind is cookies then cookie_name and cookie_ttl_seconds should be set as well.

Digital Ocean Documentation.

A boolean value indicating whether HTTP requests to the Load Balancer on port 80 will be redirected to HTTPS on port 443. Default value is false.

Digital Ocean Documentation.

The IDs of the Droplets to be assigned to the Load Balancer.

Note: Not intended to be used alongside the tag function.

Digital Ocean Documentation.

The name of a Droplet tag corresponding to Droplets to be assigned to the Load Balancer.

Note: Not intended to be used alongside the droplets function.

Digital Ocean Documentation.

Add droplets (by id) to the load balancer.

Digital Ocean Documentation.

Remove droplets (by id) from the load balancer.

Digital Ocean Documentation.

Add a forwarding rule to the Load Balancer.

Digital Ocean Documentation.

Remove a forwarding rule to the Load Balancer.

Digital Ocean Documentation.

The name to give the new SSH key in your account.

Digital Ocean Documentation.

Accepts tuples matching (id, type). Currently the only type is "droplet".

Digital Ocean Documentation.

Accepts tuples matching (id, type). Currently the only type is "droplet".

Digital Ocean Documentation.

An optional free-form text field to describe a Block Storage volume.

Digital Ocean Documentation.

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.

Digital Ocean Documentation.

The unique identifier for the volume snapshot from which to create the volume.

Note: Should not be specified with a region_id.

Digital Ocean Documentation.

The JSON body of the request.

The JSON body of the request.

The JSON body of the request.

Create a request pointing at the given url. V is the value ultimately returned when the call is executed.

Impose a limit on the number of values which may be retrieved from a request.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Execute the corresponding call.
Execute the corresponding call.
Execute the corresponding call.
Execute the corresponding call.
Execute the corresponding call.
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.