Struct xpcom::interfaces::nsIPaymentActionResponse
[−]
[src]
#[repr(C)]pub struct nsIPaymentActionResponse { /* fields omitted */ }
interface nsIPaymentActionResponse : nsISupports
/**
* The base interface of user's response.
* Payment UI should create different sub-interface of nsIPaymentActionResponse
* according to user's action, and call nsIPaymentRequestService::respondPayment
* with the created action to inform the merchant.
*/
Methods
impl nsIPaymentActionResponse
[src]
pub fn coerce<T: nsIPaymentActionResponseCoerce>(&self) -> &T
[src]
Cast this nsIPaymentActionResponse
to one of its base interfaces.
impl nsIPaymentActionResponse
[src]
pub const NO_TYPE: i64
NO_TYPE: i64 = 0
/**
* The response type.
* Align type to nsIPaymentActionRequest types,
* where 1 is for payment request creation.
* the action expects no response from UI module.
*/
pub const CANMAKE_ACTION: i64
CANMAKE_ACTION: i64 = 2
pub const SHOW_ACTION: i64
SHOW_ACTION: i64 = 3
pub const ABORT_ACTION: i64
ABORT_ACTION: i64 = 4
pub const COMPLETE_ACTION: i64
COMPLETE_ACTION: i64 = 5
pub const ABORT_SUCCEEDED: i64
ABORT_SUCCEEDED: i64 = 1
/**
* The abort status.
*/
pub const ABORT_FAILED: i64
ABORT_FAILED: i64 = 0
pub const PAYMENT_REJECTED: i64
PAYMENT_REJECTED: i64 = 0
/**
* The payment status.
*/
pub const PAYMENT_ACCEPTED: i64
PAYMENT_ACCEPTED: i64 = 1
pub const PAYMENT_NOTSUPPORTED: i64
PAYMENT_NOTSUPPORTED: i64 = 2
pub const COMPLETE_SUCCEEDED: i64
COMPLETE_SUCCEEDED: i64 = 1
/**
* The complete status.
*/
pub const COMPLETE_FAILED: i64
COMPLETE_FAILED: i64 = 0
pub unsafe fn GetRequestId(&self, aRequestId: &mut nsAString) -> nsresult
[src]
readonly attribute AString requestId;
pub unsafe fn GetType(&self, aType: *mut uint32_t) -> nsresult
[src]
readonly attribute uint32_t type;
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 nsIPaymentActionResponse
[src]
const IID: nsIID
IID: nsIID = nsID(2785525909, 61280, 19099, [163, 208, 5, 6, 198, 7, 40, 179])
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 nsIPaymentActionResponse
[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 nsIPaymentActionResponse
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.