pub struct VndbApiClient { /* private fields */ }Implementations§
Source§impl VndbApiClient
impl VndbApiClient
pub fn new(token: &String) -> Self
pub async fn get_stats(&self) -> Result<VndbStats, VndbApiError>
pub async fn get_auth_info(&self) -> Result<AuthInfo, VndbApiError>
pub async fn get_user( &self, q: &Vec<String>, fields: &UserSearchFields, ) -> Result<UserSearch, VndbApiError>
pub async fn vn_search( &self, q: &Query<VnQuery>, ) -> Result<Response<VisualNovel>, VndbApiError>
pub async fn release_search( &self, q: &Query<ReleaseQuery>, ) -> Result<Response<Release>, VndbApiError>
pub async fn producer_search( &self, q: &Query<ProducerQuery>, ) -> Result<Response<Producer>, VndbApiError>
pub async fn character_search( &self, q: &Query<CharacterQuery>, ) -> Result<Response<Character>, VndbApiError>
pub async fn staff_search( &self, q: &Query<StaffQuery>, ) -> Result<Response<Staff>, VndbApiError>
pub async fn tag_search( &self, q: &Query<TagQuery>, ) -> Result<Response<Tag>, VndbApiError>
pub async fn trait_search( &self, q: &Query<TraitQuery>, ) -> Result<Response<Trait>, VndbApiError>
pub async fn ulist( &self, q: &Query<UListQuery>, ) -> Result<Response<UList>, VndbApiError>
pub async fn get_ulist_labels( &self, user: &String, fields: &UListLabelsFieldChoices, ) -> Result<UListLabels, VndbApiError>
pub async fn ulist_patch( &self, vn_id: &String, patch: &UListPatch, ) -> Result<(), VndbApiError>
pub async fn rlist_patch( &self, r_id: &String, patch: &RListPatch, ) -> Result<(), VndbApiError>
pub async fn ulist_remove(&self, vn_id: &String) -> Result<(), VndbApiError>
pub async fn rlist_remove(&self, r_id: &String) -> Result<(), VndbApiError>
Auto Trait Implementations§
impl !RefUnwindSafe for VndbApiClient
impl !UnwindSafe for VndbApiClient
impl Freeze for VndbApiClient
impl Send for VndbApiClient
impl Sync for VndbApiClient
impl Unpin for VndbApiClient
impl UnsafeUnpin for VndbApiClient
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