pub struct FunPayAccount {
pub golden_key: String,
pub id: Option<i64>,
pub username: Option<String>,
pub csrf_token: Option<String>,
pub events_tx: Sender<Event>,
/* private fields */
}Fields§
§golden_key: String§id: Option<i64>§username: Option<String>§csrf_token: Option<String>§events_tx: Sender<Event>Implementations§
Source§impl FunPayAccount
impl FunPayAccount
pub fn new(golden_key: String) -> Self
pub fn with_config(golden_key: String, config: FunPayConfig) -> Self
pub fn with_proxy(golden_key: String, proxy_url: &str) -> Self
pub fn with_proxy_and_config( golden_key: String, proxy_url: &str, config: FunPayConfig, ) -> Self
pub fn with_gateway(gateway: Arc<dyn FunpayGateway>, golden_key: String) -> Self
pub fn with_gateway_and_config( gateway: Arc<dyn FunpayGateway>, golden_key: String, config: FunPayConfig, ) -> Self
pub fn subscribe(&self) -> Receiver<Event>
pub async fn init(&mut self) -> Result<(), FunPayError>
pub fn create_sender(&self) -> Result<FunPaySender, FunPayError>
pub async fn start_polling_loop(&mut self) -> Result<(), FunPayError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FunPayAccount
impl !RefUnwindSafe for FunPayAccount
impl Send for FunPayAccount
impl Sync for FunPayAccount
impl Unpin for FunPayAccount
impl !UnwindSafe for FunPayAccount
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more