diff --git a/src/domain.rs b/src/domain.rs index ce842cb..be3cf63 100644 --- a/src/domain.rs +++ b/src/domain.rs @@ -132,6 +132,31 @@ impl Period { } } +pub const ONE_YEAR: Period = Period { + unit: 'y', + length: 1, +}; + +pub const TWO_YEARS: Period = Period { + unit: 'y', + length: 2, +}; + +pub const THREE_YEARS: Period = Period { + unit: 'y', + length: 3, +}; + +pub const ONE_MONTH: Period = Period { + unit: 'm', + length: 1, +}; + +pub const SIX_MONTHS: Period = Period { + unit: 'm', + length: 6, +}; + /// The <authInfo> tag for domain and contact transactions #[derive(Serialize, Deserialize, Debug, Clone)] pub struct DomainAuthInfo<'a> {