pub struct TestRequestBuilder { /* private fields */ }
Implementations§
Source§impl TestRequestBuilder
impl TestRequestBuilder
Sourcepub async fn login(&self) -> Result<UserData, Box<dyn Error>>
pub async fn login(&self) -> Result<UserData, Box<dyn Error>>
flickr.test.login endpoint. Check the login information
Examples found in repository?
examples/login.rs (line 33)
25async fn main() -> Result<(), Box<dyn Error>> {
26 let client = FlickrAPI::new(ApiKey {
27 key: prompt("API key: "),
28 secret: prompt("API secret: "),
29 })
30 .login()
31 .await?;
32
33 let user = client.test().login().await?;
34
35 println!("Successfully logged in as {} ({})", user.username, user.id);
36
37 Ok(())
38}
Auto Trait Implementations§
impl Freeze for TestRequestBuilder
impl !RefUnwindSafe for TestRequestBuilder
impl !Send for TestRequestBuilder
impl !Sync for TestRequestBuilder
impl Unpin for TestRequestBuilder
impl !UnwindSafe for TestRequestBuilder
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more