URL_COMPONENTSA

Struct URL_COMPONENTSA 

Source
#[repr(C)]
pub struct URL_COMPONENTSA {
Show 15 fields pub dwStructSize: DWORD, pub lpszScheme: LPSTR, pub dwSchemeLength: DWORD, pub nScheme: c_int, pub lpszHostName: LPSTR, pub dwHostNameLength: DWORD, pub nPort: USHORT, pub lpszUserName: LPSTR, pub dwUserNameLength: DWORD, pub lpszPassword: LPSTR, pub dwPasswordLength: DWORD, pub lpszUrlPath: LPSTR, pub dwUrlPathLength: DWORD, pub lpszExtraInfo: LPSTR, pub dwExtraInfoLength: DWORD,
}
Expand description

Describes the components of a parsed URL string.

The URL_COMPONENTSA structure is used with the Windows API function InternetCrackUrlA to retrieve individual parts of a URL.

Fields§

§dwStructSize: DWORD

Size of this structure, in bytes.

§lpszScheme: LPSTR

Pointer to a buffer that receives the URL scheme (e.g., “http”).

§dwSchemeLength: DWORD

Length of the scheme string, in characters.

§nScheme: c_int

Scheme type value as determined by the API.

§lpszHostName: LPSTR

Pointer to a buffer that receives the host name (e.g., “example.com”).

§dwHostNameLength: DWORD

Length of the host name string, in characters.

§nPort: USHORT

Port number extracted from the URL.

§lpszUserName: LPSTR

Pointer to a buffer that receives the username, if present in the URL.

§dwUserNameLength: DWORD

Length of the username string, in characters.

§lpszPassword: LPSTR

Pointer to a buffer that receives the password, if present in the URL.

§dwPasswordLength: DWORD

Length of the password string, in characters.

§lpszUrlPath: LPSTR

Pointer to a buffer that receives the URL path (e.g., “/index.html”).

§dwUrlPathLength: DWORD

Length of the URL path string, in characters.

§lpszExtraInfo: LPSTR

Pointer to a buffer that receives any extra information or query parameters (e.g., “?id=1”).

§dwExtraInfoLength: DWORD

Length of the extra info string, in characters.

Trait Implementations§

Source§

impl Debug for URL_COMPONENTSA

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.