pub struct RiskEvaluation {
pub created_at: Option<DateTime>,
pub risk_level: Option<RiskEvaluationRiskLevel>,
}
Expand description
Represents fraud risk information for the associated payment.
When you take a payment through Square’s Payments API (using the CreatePayment
endpoint),
Square evaluates it and assigns a risk level to the payment. Sellers can use this information to
determine the course of action (for example, provide the goods/services or refund the payment).
Fields§
§created_at: Option<DateTime>
Read only The timestamp when payment risk was evaluated.
risk_level: Option<RiskEvaluationRiskLevel>
The risk level associated with the payment.
Trait Implementations§
Source§impl Clone for RiskEvaluation
impl Clone for RiskEvaluation
Source§fn clone(&self) -> RiskEvaluation
fn clone(&self) -> RiskEvaluation
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RiskEvaluation
impl Debug for RiskEvaluation
Source§impl Default for RiskEvaluation
impl Default for RiskEvaluation
Source§fn default() -> RiskEvaluation
fn default() -> RiskEvaluation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RiskEvaluation
impl<'de> Deserialize<'de> for RiskEvaluation
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
Source§impl PartialEq for RiskEvaluation
impl PartialEq for RiskEvaluation
Source§impl Serialize for RiskEvaluation
impl Serialize for RiskEvaluation
impl Eq for RiskEvaluation
impl StructuralPartialEq for RiskEvaluation
Auto Trait Implementations§
impl Freeze for RiskEvaluation
impl RefUnwindSafe for RiskEvaluation
impl Send for RiskEvaluation
impl Sync for RiskEvaluation
impl Unpin for RiskEvaluation
impl UnwindSafe for RiskEvaluation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.