Struct launchpadlib::client::Client
source · pub struct Client { /* private fields */ }
Implementations§
source§impl Client
impl Client
sourcepub fn from_tokens(
consumer_key: &str,
consumer_secret: Option<&str>,
token: &str,
token_secret: &str
) -> Self
pub fn from_tokens( consumer_key: &str, consumer_secret: Option<&str>, token: &str, token_secret: &str ) -> Self
Create a new client with the given credentials.
pub fn authenticated( instance: Option<&str>, consumer_key: &str ) -> Result<Self, Error>
pub fn new( consumer_key: Option<&str>, consumer_secret: Option<&str>, token: Option<&str>, token_secret: Option<&str>, user_agent: Option<&str> ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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