Struct xpcom::interfaces::nsIPaymentResponseData
[−]
[src]
#[repr(C)]pub struct nsIPaymentResponseData { /* fields omitted */ }
interface nsIPaymentResponseData : nsISupports
/**
* The base interface of response data for the specified payment method.
* The response data is the content of the PaymentResponse's detail attribute.
*/
Methods
impl nsIPaymentResponseData
[src]
pub fn coerce<T: nsIPaymentResponseDataCoerce>(&self) -> &T
[src]
Cast this nsIPaymentResponseData
to one of its base interfaces.
impl nsIPaymentResponseData
[src]
pub const GENERAL_RESPONSE: i64
GENERAL_RESPONSE: i64 = 0
/**
* The consts for representing the response data type.
* GENERAL_RESPONSE is the general purpose response data type. Except basic
* card response data, all response data should belong to this type.
* BASICCARD_RESPONSE is a special response data type for basic card response.
*/
pub const BASICCARD_RESPONSE: i64
BASICCARD_RESPONSE: i64 = 1
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);
Methods from Deref<Target = nsISupports>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsIPaymentResponseData
[src]
const IID: nsIID
IID: nsIID = nsID(708019573, 50824, 16622, [161, 87, 116, 136, 171, 41, 46, 242])
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 nsIPaymentResponseData
[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 nsIPaymentResponseData
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.