Struct xpcom::interfaces::nsIPaymentCanMakeActionResponse
[−]
[src]
#[repr(C)]pub struct nsIPaymentCanMakeActionResponse { /* fields omitted */ }
interface nsIPaymentCanMakeActionResponse : nsIPaymentActionResponse
/**
* The response for canMakePayment action.
*/
Methods
impl nsIPaymentCanMakeActionResponse
[src]
pub fn coerce<T: nsIPaymentCanMakeActionResponseCoerce>(&self) -> &T
[src]
Cast this nsIPaymentCanMakeActionResponse
to one of its base interfaces.
impl nsIPaymentCanMakeActionResponse
[src]
pub unsafe fn GetResult(&self, aResult: *mut bool) -> nsresult
[src]
/**
* The result of canMakePayment action.
*/
readonly attribute bool result;
pub unsafe fn Init(&self, aRequestId: &nsAString, aResult: bool) -> nsresult
[src]
/**
* The initial method.
* @param aRequestId - the request identifier of the payment request.
* @param aResult - the canMakePayment result.
*/
void init (in AString aRequestId, in bool aResult);
Methods from Deref<Target = nsIPaymentActionResponse>
pub fn coerce<T: nsIPaymentActionResponseCoerce>(&self) -> &T
[src]
Cast this nsIPaymentActionResponse
to one of its base interfaces.
pub const NO_TYPE: i64
pub const CANMAKE_ACTION: i64
pub const SHOW_ACTION: i64
pub const ABORT_ACTION: i64
pub const COMPLETE_ACTION: i64
pub const ABORT_SUCCEEDED: i64
pub const ABORT_FAILED: i64
pub const PAYMENT_REJECTED: i64
pub const PAYMENT_ACCEPTED: i64
pub const PAYMENT_NOTSUPPORTED: i64
pub const COMPLETE_SUCCEEDED: i64
pub const COMPLETE_FAILED: i64
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;
Trait Implementations
impl XpCom for nsIPaymentCanMakeActionResponse
[src]
const IID: nsIID
IID: nsIID = nsID(1392263071, 49355, 18548, [179, 212, 238, 75, 110, 156, 190, 156])
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 nsIPaymentCanMakeActionResponse
[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 nsIPaymentCanMakeActionResponse
[src]
type Target = nsIPaymentActionResponse
The resulting type after dereferencing.
fn deref(&self) -> &nsIPaymentActionResponse
[src]
Dereferences the value.