Struct sp_plugin_rust_test::Shurjopay::SpAuthToken
source · pub struct SpAuthToken {
pub token: String,
pub store_id: i32,
pub execute_url: String,
pub token_type: String,
pub sp_code: String,
pub message: String,
pub token_create_time: String,
pub expires_in: i64,
}Expand description
Shurjopay token authorization data structure
This structure implements Serialize, Deserialize, Debug and Clone functions
Fields§
§token: String§store_id: i32§execute_url: String§token_type: String§sp_code: String§message: String§token_create_time: String§expires_in: i64Implementations§
source§impl SpAuthToken
impl SpAuthToken
implementation for SpAuthToken
sourcepub fn get_time(&self) -> Option<NaiveDateTime>
pub fn get_time(&self) -> Option<NaiveDateTime>
Takes SpAuthToken structure and and converts String timestamp stored in SpAuthToken.token_create_time
return time in NativeDateTime
Trait Implementations§
source§impl Clone for SpAuthToken
impl Clone for SpAuthToken
source§fn clone(&self) -> SpAuthToken
fn clone(&self) -> SpAuthToken
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for SpAuthToken
impl Debug for SpAuthToken
source§impl<'de> Deserialize<'de> for SpAuthToken
impl<'de> Deserialize<'de> for SpAuthToken
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