pub struct Api {
pub token: String,
}
Fields§
§token: String
Implementations§
Source§impl Api
impl Api
pub fn client(&self) -> RequestBuilder
pub async fn graphql( &self, query: String, variables: Option<Value>, ) -> Result<Value>
pub async fn create_message(&self, payload: Value) -> Result<Value>
pub async fn create_conversation(&self, payload: String) -> Result<Value>
pub async fn list_pubkeys(&self, user_ids: Vec<String>) -> Result<Value>
Auto Trait Implementations§
impl Freeze for Api
impl RefUnwindSafe for Api
impl Send for Api
impl Sync for Api
impl Unpin for Api
impl UnwindSafe for Api
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