pub struct Instagram { /* private fields */ }Implementations§
Source§impl Instagram
impl Instagram
pub fn builder() -> InstagramBuilder
pub async fn login(&self) -> Result<()>
pub async fn user(&self, username: &str) -> Result<User>
pub async fn user_by_id(&self, user_id: &str) -> Result<User>
pub async fn media(&self, shortcode: &str) -> Result<Media>
pub async fn reel(&self, shortcode: &str) -> Result<Reel>
pub async fn user_posts( &self, user_id: &str, count: u32, cursor: Option<&str>, ) -> Result<Pagination<Media>>
pub async fn comments( &self, shortcode: &str, count: u32, cursor: Option<&str>, ) -> Result<Pagination<Comment>>
pub async fn likers( &self, shortcode: &str, count: u32, cursor: Option<&str>, ) -> Result<Pagination<Like>>
pub async fn followers( &self, user_id: &str, count: u32, cursor: Option<&str>, ) -> Result<Pagination<User>>
pub async fn following( &self, user_id: &str, count: u32, cursor: Option<&str>, ) -> Result<Pagination<User>>
pub async fn highlights(&self, user_id: &str) -> Result<Vec<Highlight>>
pub async fn search(&self, query: &str) -> Result<SearchResult>
pub async fn hashtag_media( &self, tag: &str, count: u32, cursor: Option<&str>, ) -> Result<Pagination<Media>>
pub fn auth(&self) -> &Auth
Auto Trait Implementations§
impl Freeze for Instagram
impl !RefUnwindSafe for Instagram
impl Send for Instagram
impl Sync for Instagram
impl Unpin for Instagram
impl !UnwindSafe for Instagram
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more