pub struct RecurrenceConfig {
pub every: u32,
pub unit: RecurrenceUnit,
pub starts_at: String,
pub anchor: String,
pub ends_at: Option<String>,
}Expand description
Unvalidated input for a recurring Payment Request schedule.
Convert with Recurrence::try_from to validate the complete schedule.
Fields§
§every: u32Positive interval count.
unit: RecurrenceUnitCalendar or fixed-duration recurrence unit.
starts_at: StringFirst UTC instant, using the Z suffix.
anchor: StringUTC schedule anchor; it need not precede the start.
ends_at: Option<String>Optional exclusive end, strictly after the start.
Trait Implementations§
Source§impl Clone for RecurrenceConfig
impl Clone for RecurrenceConfig
Source§impl Debug for RecurrenceConfig
impl Debug for RecurrenceConfig
Source§impl TryFrom<RecurrenceConfig> for Recurrence
impl TryFrom<RecurrenceConfig> for Recurrence
Source§type Error = PaykitError
type Error = PaykitError
The type returned in the event of a conversion error.
Source§fn try_from(value: RecurrenceConfig) -> Result<Self>
fn try_from(value: RecurrenceConfig) -> Result<Self>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for RecurrenceConfig
impl RefUnwindSafe for RecurrenceConfig
impl Send for RecurrenceConfig
impl Sync for RecurrenceConfig
impl Unpin for RecurrenceConfig
impl UnsafeUnpin for RecurrenceConfig
impl UnwindSafe for RecurrenceConfig
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