pub struct TushareResponse {
pub request_id: String,
pub code: i32,
pub msg: Option<String>,
pub data: Option<TushareData>,
}Expand description
Tushare API response structure
Fields§
§request_id: String§code: i32§msg: Option<String>§data: Option<TushareData>Trait Implementations§
Source§fn clone(&self) -> TushareResponse
fn clone(&self) -> TushareResponse
Returns a duplicate 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§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
This allows automatic conversion from API responses to typed entity lists. It extracts pagination metadata and converts each data row to the target type T.
Source§type Error = TushareError
type Error = TushareError
The type returned in the event of a conversion error.
Auto Trait Implementations§
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