pub struct Recurrence { /* private fields */ }Expand description
Schedule object for a recurring Payment Request.
Fields cannot be mutated after validated construction.
ⓘ
fn cannot_mutate(mut value: paykit_lib::Recurrence) {
value.every = 0;
}Implementations§
Source§impl Recurrence
impl Recurrence
Sourcepub fn unit(&self) -> RecurrenceUnit
pub fn unit(&self) -> RecurrenceUnit
Access the unit.
Trait Implementations§
Source§impl Clone for Recurrence
impl Clone for Recurrence
Source§impl Debug for Recurrence
impl Debug for Recurrence
impl Eq for Recurrence
Source§impl PartialEq for Recurrence
impl PartialEq for Recurrence
impl StructuralPartialEq for Recurrence
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 Recurrence
impl RefUnwindSafe for Recurrence
impl Send for Recurrence
impl Sync for Recurrence
impl Unpin for Recurrence
impl UnsafeUnpin for Recurrence
impl UnwindSafe for Recurrence
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