Struct dnsimple::dnsimple::services::Services [−][src]
pub struct Services<'a> {
pub client: &'a Client,
}
Expand description
The Services Service handles the domains services of the DNSimple API.
Fields
client: &'a Client
Implementations
pub fn list_services(
&self,
options: Option<RequestOptions>
) -> Result<DNSimpleResponse<Vec<Service>>, String>
pub fn list_services(
&self,
options: Option<RequestOptions>
) -> Result<DNSimpleResponse<Vec<Service>>, String>
List services
pub fn applied_services(
&self,
account_id: u64,
domain: String,
options: Option<RequestOptions>
) -> Result<DNSimpleResponse<Vec<Service>>, String>
pub fn applied_services(
&self,
account_id: u64,
domain: String,
options: Option<RequestOptions>
) -> Result<DNSimpleResponse<Vec<Service>>, String>
List services applied to a domain.
Arguments
account_id
: The account id
domain
: The domain name or id
pub fn apply_service(
&self,
account_id: u64,
domain: String,
service: String
) -> DNSimpleEmptyResponse
pub fn apply_service(
&self,
account_id: u64,
domain: String,
service: String
) -> DNSimpleEmptyResponse
Applies a service to a domain.
Arguments
account_id
: The account id
domain
: The domain name or id
service
: The service name or id
pub fn unapply_service(
&self,
account_id: u64,
domain: String,
service: String
) -> DNSimpleEmptyResponse
pub fn unapply_service(
&self,
account_id: u64,
domain: String,
service: String
) -> DNSimpleEmptyResponse
Unapplies a service to a domain.
Arguments
account_id
: The account id
domain
: The domain name or id
service
: The service name or id