pub struct ApiRequest {
pub api_interface: String,
pub api_method: String,
pub api_version: u32,
pub access_token: Option<String>,
pub request_data: Option<Vec<u8>>,
pub headers: HashMap<String, String>,
}Expand description
Request to send to Steam API.
Fields§
§api_interface: StringAPI interface (e.g., “Authentication”).
api_method: StringAPI method (e.g., “GetPasswordRSAPublicKey”).
api_version: u32API version.
access_token: Option<String>Access token for authenticated requests.
request_data: Option<Vec<u8>>Protobuf-encoded request data.
headers: HashMap<String, String>HTTP headers.
Trait Implementations§
Source§impl Clone for ApiRequest
impl Clone for ApiRequest
Source§fn clone(&self) -> ApiRequest
fn clone(&self) -> ApiRequest
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 moreAuto Trait Implementations§
impl Freeze for ApiRequest
impl RefUnwindSafe for ApiRequest
impl Send for ApiRequest
impl Sync for ApiRequest
impl Unpin for ApiRequest
impl UnsafeUnpin for ApiRequest
impl UnwindSafe for ApiRequest
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