pub struct PricingRequest {
pub product_type: String,
pub product_category: Option<String>,
pub action_name: Option<String>,
pub product_name: Option<String>,
pub promotion_code: Option<String>,
}Expand description
A request for Users::get_pricing.
For domain prices, start from PricingRequest::domains and narrow with
action and tld.
Fields§
§product_type: StringThe product type ("DOMAIN", "SSLCERTIFICATE", or "WHOISGUARD").
product_category: Option<String>The product category (for domains this is "DOMAINS").
action_name: Option<String>The action to price ("REGISTER", "RENEW", "TRANSFER", "REACTIVATE").
When omitted, all actions are returned.
product_name: Option<String>The specific product, for example a TLD like "com". When omitted, all
products are returned (which can be a large response).
promotion_code: Option<String>An optional promotion code to apply.
Implementations§
Source§impl PricingRequest
impl PricingRequest
Sourcepub fn action(self, action: impl Into<String>) -> Self
pub fn action(self, action: impl Into<String>) -> Self
Narrows to a single action ("REGISTER", "RENEW", …).
Sourcepub fn tld(self, tld: impl Into<String>) -> Self
pub fn tld(self, tld: impl Into<String>) -> Self
Narrows to a single TLD or product (for example "com").
Sourcepub fn category(self, category: impl Into<String>) -> Self
pub fn category(self, category: impl Into<String>) -> Self
Sets the product category explicitly.
Sourcepub fn promotion_code(self, code: impl Into<String>) -> Self
pub fn promotion_code(self, code: impl Into<String>) -> Self
Applies a promotion code.
Trait Implementations§
Source§impl Clone for PricingRequest
impl Clone for PricingRequest
Source§fn clone(&self) -> PricingRequest
fn clone(&self) -> PricingRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PricingRequest
impl RefUnwindSafe for PricingRequest
impl Send for PricingRequest
impl Sync for PricingRequest
impl Unpin for PricingRequest
impl UnsafeUnpin for PricingRequest
impl UnwindSafe for PricingRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more