pub struct InstagramAPI<'a> {
pub api: RocketAPI<'a>,
pub last_response: Value,
pub counter: u32,
}Fields§
§api: RocketAPI<'a>§last_response: Value§counter: u32Implementations§
Source§impl<'a> InstagramAPI<'a>
impl<'a> InstagramAPI<'a>
pub fn new(token: &'a str, max_timeout: Duration) -> Self
pub async fn search(&mut self, query: &str) -> Result<Value, RocketAPIError>
pub async fn get_user_info( &mut self, username: &str, ) -> Result<Value, RocketAPIError>
pub async fn get_user_info_by_id( &mut self, user_id: &u64, ) -> Result<Value, RocketAPIError>
pub async fn get_user_media( &mut self, user_id: &u64, count: Option<u8>, max_id: Option<&str>, ) -> Result<Value, RocketAPIError>
pub async fn get_user_clips( &mut self, user_id: &u64, count: Option<u8>, max_id: Option<&str>, ) -> Result<Value, RocketAPIError>
pub async fn get_user_guides( &mut self, user_id: &u64, max_id: Option<&str>, ) -> Result<Value, RocketAPIError>
pub async fn get_user_following( &mut self, user_id: &u64, count: Option<u16>, max_id: Option<&str>, ) -> Result<Value, RocketAPIError>
pub async fn search_user_following( &mut self, user_id: &u64, query: &str, ) -> Result<Value, RocketAPIError>
pub async fn get_user_followers( &mut self, user_id: &u64, count: Option<u8>, max_id: Option<&str>, ) -> Result<Value, RocketAPIError>
pub async fn search_user_followers( &mut self, user_id: &u64, query: &str, ) -> Result<Value, RocketAPIError>
pub async fn get_user_stories_bulk( &mut self, user_ids: Vec<&u64>, ) -> Result<Value, RocketAPIError>
pub async fn get_user_stories( &mut self, user_id: &u64, ) -> Result<Value, RocketAPIError>
pub async fn get_user_highlights( &mut self, user_id: &u64, ) -> Result<Value, RocketAPIError>
pub async fn get_user_live( &mut self, user_id: &u64, ) -> Result<Value, RocketAPIError>
pub async fn get_user_similar_accounts( &mut self, user_id: &u64, ) -> Result<Value, RocketAPIError>
pub async fn get_media_info( &mut self, media_id: &u64, ) -> Result<Value, RocketAPIError>
pub async fn get_media_info_by_shortcode( &mut self, shortcode: &str, ) -> Result<Value, RocketAPIError>
pub async fn get_media_likes( &mut self, shortcode: &str, count: Option<u8>, max_id: Option<&str>, ) -> Result<Value, RocketAPIError>
pub async fn get_media_comments( &mut self, media_id: &u64, can_support_threading: Option<bool>, min_id: Option<&str>, ) -> Result<Value, RocketAPIError>
pub async fn get_media_shortcode_by_id( &mut self, media_id: &u64, ) -> Result<Value, RocketAPIError>
pub async fn get_media_id_by_shortcode( &mut self, shortcode: &str, ) -> Result<Value, RocketAPIError>
pub async fn get_guide_info( &mut self, guide_id: &u64, ) -> Result<Value, RocketAPIError>
pub async fn get_location_info( &mut self, location_id: &u64, ) -> Result<Value, RocketAPIError>
pub async fn get_location_media( &mut self, location_id: &u64, page: Option<&u64>, max_id: Option<&str>, ) -> Result<Value, RocketAPIError>
pub async fn get_hashtag_info( &mut self, name: &str, ) -> Result<Value, RocketAPIError>
pub async fn get_hashtag_media( &mut self, name: &str, page: Option<&u64>, max_id: Option<&str>, ) -> Result<Value, RocketAPIError>
pub async fn get_highlight_stories_bulk( &mut self, highlight_ids: Vec<&u64>, ) -> Result<Value, RocketAPIError>
pub async fn get_highlight_stories( &mut self, highlight_id: &u64, ) -> Result<Value, RocketAPIError>
pub async fn get_comment_likes( &mut self, comment_id: &u64, max_id: Option<&str>, ) -> Result<Value, RocketAPIError>
pub async fn get_comment_replies( &mut self, comment_id: &u64, media_id: &u64, max_id: Option<&str>, ) -> Result<Value, RocketAPIError>
pub async fn get_audio_media( &mut self, audio_id: &u64, max_id: Option<&str>, ) -> Result<Value, RocketAPIError>
pub async fn get_user_about( &mut self, user_id: &u64, ) -> Result<Value, RocketAPIError>
Auto Trait Implementations§
impl<'a> Freeze for InstagramAPI<'a>
impl<'a> RefUnwindSafe for InstagramAPI<'a>
impl<'a> Send for InstagramAPI<'a>
impl<'a> Sync for InstagramAPI<'a>
impl<'a> Unpin for InstagramAPI<'a>
impl<'a> UnwindSafe for InstagramAPI<'a>
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