pub struct RiotLockFile {
pub process: String,
pub pid: u32,
pub port: u32,
pub password: String,
pub protocol: String,
pub username: String,
pub address: String,
pub b64_auth: String,
}
Expand description
This struct can be used to establish a connection with Game Client API like so
curl --request GET \
--url https://127.0.0.1:54835/lol-summoner/v1/current-summoner \
--header 'authorization: Basic cmlvdDpDMERXVDZWREoySDUwSEZKMkJFU2hR'
Note that all the information is gotten from the lockfile:
- protocol: https
- address: 127.0.0.1
- b64_auth: cmlvdDpDMERXVDZWREoySDUwSEZKMkJFU2hR
For the actual endpoint, download the Rift Explorer
Fields§
§process: String
§pid: u32
§port: u32
§password: String
§protocol: String
§username: String
§address: String
§b64_auth: String
Trait Implementations§
Source§impl Clone for RiotLockFile
impl Clone for RiotLockFile
Source§fn clone(&self) -> RiotLockFile
fn clone(&self) -> RiotLockFile
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 RiotLockFile
impl Debug for RiotLockFile
Source§impl<'de> Deserialize<'de> for RiotLockFile
impl<'de> Deserialize<'de> for RiotLockFile
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
Source§impl PartialEq for RiotLockFile
impl PartialEq for RiotLockFile
Source§impl Serialize for RiotLockFile
impl Serialize for RiotLockFile
impl StructuralPartialEq for RiotLockFile
Auto Trait Implementations§
impl Freeze for RiotLockFile
impl RefUnwindSafe for RiotLockFile
impl Send for RiotLockFile
impl Sync for RiotLockFile
impl Unpin for RiotLockFile
impl UnwindSafe for RiotLockFile
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