pub struct IpPools {
    pub client: Client,
}

Fields

client: Client

Implementations

Retrieve all IP pools.

This function performs a GET to the /ips/pools endpoint.

This endpoint allows you to get all of your IP pools.

Retrieve all IP pools.

This function performs a GET to the /ips/pools endpoint.

As opposed to get_ips_pools, this function returns all the pages of the request at once.

This endpoint allows you to get all of your IP pools.

Create an IP pool.

This function performs a POST to the /ips/pools endpoint.

This endpoint allows you to create an IP pool.

Before you can create an IP pool, you need to activate the IP in your SendGrid account:

  1. Log into your SendGrid account.
  2. Navigate to Settings and then select IP Addresses.
  3. Find the IP address you want to activate and then click Edit.
  4. Check Allow my account to send mail using this IP address.
  5. Click Save.

Add an IP address to a pool.

This function performs a POST to the /ips/pools/{pool_name}/ips endpoint.

This endpoint allows you to add an IP address to an IP pool.

You can add the same IP address to multiple pools. It may take up to 60 seconds for your IP address to be added to a pool after your request is made.

Before you can add an IP to a pool, you need to activate it in your SendGrid account:

  1. Log into your SendGrid account.
  2. Navigate to Settings and then select IP Addresses.
  3. Find the IP address you want to activate and then click Edit.
  4. Check Allow my account to send mail using this IP address.
  5. Click Save.

You can retrieve all of your available IP addresses from the “Retrieve all IP addresses” endpoint.

Retrieve all the IPs in a specified pool.

This function performs a GET to the /ips/pools/{pool_name} endpoint.

This endpoint allows you to get all of the IP addresses that are in a specific IP pool.

Rename an IP pool.

This function performs a PUT to the /ips/pools/{pool_name} endpoint.

This endpoint allows you to update the name of an IP pool.

Delete an IP pool.

This function performs a DELETE to the /ips/pools/{pool_name} endpoint.

This endpoint allows you to delete an IP pool.

Remove an IP address from a pool.

This function performs a DELETE to the /ips/pools/{pool_name}/ips/{ip} endpoint.

This endpoint allows you to remove an IP address from an IP pool.

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.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Attaches the current Context to this type, returning a WithContext wrapper. Read more
Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

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.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more