Struct xpcom::interfaces::nsIBasicCardResponseData
[−]
[src]
#[repr(C)]pub struct nsIBasicCardResponseData { /* fields omitted */ }
interface nsIBasicCardResponseData : nsIPaymentResponseData
/**
* The basic card response data.
* Since PaymentAddress is an no constructor interface type, UI code can not
* easy create PaymentAddress by calling new PaymentAddress().
* Unfortunately, BasicCardResponse has a PaymentAddress attribute, billingAddress
* , it means UI can not create BsaicCardResponse by calling the init() with a
* given JSObject directly, because PaymentAddress creation in JS code is hard.
* To let UI code can create BasicCardResponse easier, nsIBasicCardResponse is
* provided for UI by passing the raw data of BasicCardResponse,
*/
Methods
impl nsIBasicCardResponseData
[src]
pub fn coerce<T: nsIBasicCardResponseDataCoerce>(&self) -> &T
[src]
Cast this nsIBasicCardResponseData
to one of its base interfaces.
impl nsIBasicCardResponseData
[src]
pub unsafe fn GetData(&self, aData: &mut nsAString) -> nsresult
[src]
/**
* The stringified response data.
*/
readonly attribute AString data;
pub unsafe fn InitData(
&self,
aCardholderName: &nsAString,
aCardNumber: &nsAString,
aExpiryMonth: &nsAString,
aExpiryYear: &nsAString,
aCardSecurityCode: &nsAString,
billingAddress: *const nsIPaymentAddress
) -> nsresult
[src]
&self,
aCardholderName: &nsAString,
aCardNumber: &nsAString,
aExpiryMonth: &nsAString,
aExpiryYear: &nsAString,
aCardSecurityCode: &nsAString,
billingAddress: *const nsIPaymentAddress
) -> nsresult
/**
* The initial method for nsIBasicCardResponseData.
* @param aCardholderName - the cardholder name.
* @param aCardNumber - the card number.
* @param aExpiryMonth - the expiry month.
* @param aExpiryYear - the expiry year.
* @param aCardSecurityCode - the card security code.
* @param aBillingAddreess - the billing address.
*/
void initData (in AString aCardholderName, in AString aCardNumber, in AString aExpiryMonth, in AString aExpiryYear, in AString aCardSecurityCode, in nsIPaymentAddress billingAddress);
Methods from Deref<Target = nsIPaymentResponseData>
pub fn coerce<T: nsIPaymentResponseDataCoerce>(&self) -> &T
[src]
Cast this nsIPaymentResponseData
to one of its base interfaces.
pub const GENERAL_RESPONSE: i64
pub const BASICCARD_RESPONSE: i64
pub unsafe fn GetType(&self, aType: *mut uint32_t) -> nsresult
[src]
/**
* The response data type.
* Using the above defined consts(GENERAL_RESPONSE or BASICCARD_RESPONSE).
*/
readonly attribute uint32_t type;
pub unsafe fn Init(&self, aType: uint32_t) -> nsresult
[src]
/**
* The initial method.
* @param aType - the response data type.
*/
void init (in uint32_t aType);
Trait Implementations
impl XpCom for nsIBasicCardResponseData
[src]
const IID: nsIID
IID: nsIID = nsID(223716838, 53637, 17648, [185, 146, 168, 225, 50, 30, 75, 206])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[src]
Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more
impl RefCounted for nsIBasicCardResponseData
[src]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsIBasicCardResponseData
[src]
type Target = nsIPaymentResponseData
The resulting type after dereferencing.
fn deref(&self) -> &nsIPaymentResponseData
[src]
Dereferences the value.