pub struct RoamClient { /* private fields */ }Implementations§
Source§impl RoamClient
impl RoamClient
pub fn new(graph_name: &str, token: &str) -> Self
pub fn new_with_base_url(base_url: &str, token: &str) -> Self
pub async fn pull(&self, eid: Value, selector: &str) -> Result<PullResponse>
pub async fn query( &self, query: String, args: Vec<Value>, ) -> Result<QueryResponse>
pub async fn write(&self, action: WriteAction) -> Result<()>
pub async fn write_batch(&self, actions: Vec<WriteAction>) -> Result<()>
Trait Implementations§
Source§impl Clone for RoamClient
impl Clone for RoamClient
Source§fn clone(&self) -> RoamClient
fn clone(&self) -> RoamClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RoamClient
impl !RefUnwindSafe for RoamClient
impl Send for RoamClient
impl Sync for RoamClient
impl Unpin for RoamClient
impl UnsafeUnpin for RoamClient
impl !UnwindSafe for RoamClient
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