pub struct TicketResponse {
pub ticket: String,
pub expire_seconds: u64,
pub url: String,
}
Fields§
§ticket: String
§expire_seconds: u64
§url: String
Implementations§
Source§impl TicketResponse
impl TicketResponse
Sourcepub fn show_qrcode(&self) -> String
pub fn show_qrcode(&self) -> String
Generates a URL to display the QR code using the ticket.
This function encodes the ticket and constructs a URL that can be used to view the QR code associated with the provided ticket.
§Returns
- A
String
representing the URL to display the QR code.
Trait Implementations§
Source§impl Debug for TicketResponse
impl Debug for TicketResponse
Source§impl<'de> Deserialize<'de> for TicketResponse
impl<'de> Deserialize<'de> for TicketResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TicketResponse
impl RefUnwindSafe for TicketResponse
impl Send for TicketResponse
impl Sync for TicketResponse
impl Unpin for TicketResponse
impl UnwindSafe for TicketResponse
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