File tree 4 files changed +5
-4
lines changed
4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " rfesi"
3
- version = " 0.16.0 "
3
+ version = " 0.16.1 "
4
4
authors = [
" Celeo <[email protected] >" ]
5
5
edition = " 2021"
6
6
description = " Rust API for EVE Online's ESI"
Original file line number Diff line number Diff line change @@ -421,7 +421,8 @@ impl Esi {
421
421
) ;
422
422
return Err ( EsiError :: InvalidStatusCode ( resp. status ( ) . as_u16 ( ) ) ) ;
423
423
}
424
- let data: T = resp. json ( ) . await ?;
424
+ let text = resp. text ( ) . await ?;
425
+ let data: T = serde_json:: from_str ( & text) ?;
425
426
Ok ( data)
426
427
}
427
428
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ pub enum EsiError {
46
46
#[ error( "Error occurred while parsing the Swagger spec at: {0}" ) ]
47
47
FailedSpecParse ( String ) ,
48
48
/// Error for being unable to parse JSON from anywhere.
49
- #[ error( "Failed to serialize/deserialize JSON" ) ]
49
+ #[ error( "Failed to serialize/deserialize JSON; this may be due to unexpected data or invalid struct field(s) " ) ]
50
50
FailedJsonParse ( #[ from] serde_json:: Error ) ,
51
51
/// Error for being unable to get the current timestamp.
52
52
#[ error( "Could not get current timestamp: {0}" ) ]
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ pub struct CharacterGroup<'a> {
9
9
#[ allow( missing_docs) ]
10
10
pub struct CharacterPublicInfo {
11
11
pub alliance_id : u64 ,
12
- pub ancestry_id : u16 ,
13
12
pub birthday : String ,
13
+ pub bloodline_id : u64 ,
14
14
pub corporation_id : u64 ,
15
15
pub description : String ,
16
16
pub gender : String ,
You can’t perform that action at this time.
0 commit comments