Struct labrador::ExtUserInfo
source · [−]pub struct ExtUserInfo {
pub name: Option<String>,
pub mobile: Option<String>,
pub cert_type: Option<String>,
pub cert_no: Option<String>,
pub min_age: Option<String>,
pub need_check_info: Option<String>,
}Expand description
外部指定买家
Fields
name: Option<String>指定买家姓名。 注: need_check_info=T时该参数才有效
mobile: Option<String>指定买家手机号。 注:该参数暂不校验
cert_type: Option<String>指定买家证件类型。
枚举值: IDENTITY_CARD:身份证; PASSPORT:护照; OFFICER_CARD:军官证; SOLDIER_CARD:士兵证; HOKOU:户口本。如有其它类型需要支持,请与支付宝工作人员联系。 注: need_check_info=T时该参数才有效,支付宝会比较买家在支付宝留存的证件类型与该参数传入的值是否匹配。
cert_no: Option<String>买家证件号。 注:need_check_info=T时该参数才有效,支付宝会比较买家在支付宝留存的证件号码与该参数传入的值是否匹配。
min_age: Option<String>允许的最小买家年龄。
买家年龄必须大于等于所传数值 注: 1. need_check_info=T时该参数才有效 2. min_age为整数,必须大于等于0
need_check_info: Option<String>是否强制校验买家信息;
需要强制校验传:T; 不需要强制校验传:F或者不传; 当传T时,支付宝会校验支付买家的信息与接口上传递的cert_type、cert_no、name或age是否匹配,只有接口传递了信息才会进行对应项的校验;只要有任何一项信息校验不匹配交易都会失败。如果传递了need_check_info,但是没有传任何校验项,则不进行任何校验。 默认为不校验。
Trait Implementations
sourceimpl Debug for ExtUserInfo
Available on crate feature alipay only.
impl Debug for ExtUserInfo
Available on crate feature
alipay only.sourceimpl<'de> Deserialize<'de> for ExtUserInfo
Available on crate feature alipay only.
impl<'de> Deserialize<'de> for ExtUserInfo
Available on crate feature
alipay only.sourcefn 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
sourceimpl Serialize for ExtUserInfo
Available on crate feature alipay only.
impl Serialize for ExtUserInfo
Available on crate feature
alipay only.Auto Trait Implementations
impl RefUnwindSafe for ExtUserInfo
impl Send for ExtUserInfo
impl Sync for ExtUserInfo
impl Unpin for ExtUserInfo
impl UnwindSafe for ExtUserInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more