[][src]Struct dgraph_rs_http::client_stub::DgraphClientStub

pub struct DgraphClientStub { /* fields omitted */ }

Methods

impl DgraphClientStub[src]

pub fn new(
    addr: Option<String>,
    tls_config: Option<TlsConfig>
) -> Result<DgraphClientStub, Box<dyn Error>>
[src]

Construct new DgraphClientStub

pub fn query(&self, req: Request) -> Result<(Value, Extensions), Box<dyn Error>>[src]

query dGraph

pub fn health(&self) -> Result<String, Box<dyn Error>>[src]

check health of dGraph server

pub fn abort(&self, ctx: &TxnContext) -> Result<TxnContext, Box<dyn Error>>[src]

abort transaction

pub fn commit(&self, ctx: TxnContext) -> Result<TxnContext, Box<dyn Error>>[src]

commit transaction

pub fn mutate(&self, mu: Mutation) -> Result<Assigned, Box<dyn Error>>[src]

make mutation on dGraph data

pub fn alter(&self, op: Operation) -> Result<String, Box<dyn Error>>[src]

alter dGraph schema

Trait Implementations

impl Debug for DgraphClientStub[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Erased for T