pub struct SourceAcceptanceParams {
pub date: Option<Timestamp>,
pub ip: Option<String>,
pub offline: Option<SourceAcceptanceOfflineParams>,
pub online: Option<SourceAcceptanceOnlineParams>,
pub status: SourceAcceptanceParamsStatus,
pub type_: Option<SourceAcceptanceParamsType>,
pub user_agent: Option<String>,
}
Fields§
§date: Option<Timestamp>
The Unix timestamp (in seconds) when the mandate was accepted or refused by the customer.
ip: Option<String>
The IP address from which the mandate was accepted or refused by the customer.
offline: Option<SourceAcceptanceOfflineParams>
The parameters required to store a mandate accepted offline.
Should only be set if mandate[type]
is offline
.
online: Option<SourceAcceptanceOnlineParams>
The parameters required to store a mandate accepted online.
Should only be set if mandate[type]
is online
.
status: SourceAcceptanceParamsStatus
The status of the mandate acceptance.
Either accepted
(the mandate was accepted) or refused
(the mandate was refused).
type_: Option<SourceAcceptanceParamsType>
The type of acceptance information included with the mandate.
Either online
or offline
.
user_agent: Option<String>
The user agent of the browser from which the mandate was accepted or refused by the customer.
Trait Implementations§
source§impl Clone for SourceAcceptanceParams
impl Clone for SourceAcceptanceParams
source§fn clone(&self) -> SourceAcceptanceParams
fn clone(&self) -> SourceAcceptanceParams
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SourceAcceptanceParams
impl Debug for SourceAcceptanceParams
source§impl Default for SourceAcceptanceParams
impl Default for SourceAcceptanceParams
source§fn default() -> SourceAcceptanceParams
fn default() -> SourceAcceptanceParams
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SourceAcceptanceParams
impl<'de> Deserialize<'de> for SourceAcceptanceParams
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for SourceAcceptanceParams
impl Send for SourceAcceptanceParams
impl Sync for SourceAcceptanceParams
impl Unpin for SourceAcceptanceParams
impl UnwindSafe for SourceAcceptanceParams
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