[−][src]Struct lastfm_parse_rs::request::Request
Request information associated with a method and lastfm data type. Can be converted to a Url. No POST request support yet.
Fields
base_url: &'rq str
api_key: &'rq str
secret: Option<&'rq str>
session: Option<&'rq str>
params: T
Methods
impl<'rq, T> Request<'rq, T> where
T: RequestParams + Debug,
[src]
T: RequestParams + Debug,
pub fn new(
base_url: &'rq str,
api_key: &'rq str,
secret: Option<&'rq str>,
session: Option<&'rq str>,
params: T
) -> Request<'rq, T>
[src]
base_url: &'rq str,
api_key: &'rq str,
secret: Option<&'rq str>,
session: Option<&'rq str>,
params: T
) -> Request<'rq, T>
Constructs new Request from given method and parameters
pub fn get_url(&self) -> Result<Url>
[src]
Converts Request object to an Url and appends method parameters to the query.
- Appends a session key for
write
API methods. - Signs
write
andauth
API methods.
Trait Implementations
impl<'rq, T: Debug> Debug for Request<'rq, T> where
T: RequestParams + Debug,
[src]
T: RequestParams + Debug,
impl<'rq, T> TryFrom<Request<'rq, T>> for Url where
T: RequestParams + Debug,
[src]
T: RequestParams + Debug,
Auto Trait Implementations
impl<'rq, T> RefUnwindSafe for Request<'rq, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<'rq, T> Send for Request<'rq, T> where
T: Send,
T: Send,
impl<'rq, T> Sync for Request<'rq, T> where
T: Sync,
T: Sync,
impl<'rq, T> Unpin for Request<'rq, T> where
T: Unpin,
T: Unpin,
impl<'rq, T> UnwindSafe for Request<'rq, T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,