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§
source§impl Services<'_>
impl Services<'_>
sourcepub fn list_services(
&self,
options: Option<RequestOptions>
) -> Result<DNSimpleResponse<Vec<Service>>, DNSimpleError>
pub fn list_services( &self, options: Option<RequestOptions> ) -> Result<DNSimpleResponse<Vec<Service>>, DNSimpleError>
List services
sourcepub fn get_service(
&self,
service: String
) -> Result<DNSimpleResponse<Service>, DNSimpleError>
pub fn get_service( &self, service: String ) -> Result<DNSimpleResponse<Service>, DNSimpleError>
sourcepub fn applied_services(
&self,
account_id: u64,
domain: String,
options: Option<RequestOptions>
) -> Result<DNSimpleResponse<Vec<Service>>, DNSimpleError>
pub fn applied_services( &self, account_id: u64, domain: String, options: Option<RequestOptions> ) -> Result<DNSimpleResponse<Vec<Service>>, DNSimpleError>
List services applied to a domain.
Arguments
account_id
: The account id
domain
: The domain name or id
sourcepub fn apply_service(
&self,
account_id: u64,
domain: String,
service: String
) -> Result<DNSimpleEmptyResponse, DNSimpleError>
pub fn apply_service( &self, account_id: u64, domain: String, service: String ) -> Result<DNSimpleEmptyResponse, DNSimpleError>
Applies a service to a domain.
Arguments
account_id
: The account id
domain
: The domain name or id
service
: The service name or id
sourcepub fn unapply_service(
&self,
account_id: u64,
domain: String,
service: String
) -> Result<DNSimpleEmptyResponse, DNSimpleError>
pub fn unapply_service( &self, account_id: u64, domain: String, service: String ) -> Result<DNSimpleEmptyResponse, DNSimpleError>
Unapplies a service to a domain.
Arguments
account_id
: The account id
domain
: The domain name or id
service
: The service name or id