[−][src]Struct dgraph_rs_http::client_stub::DgraphClientStub
Methods
impl DgraphClientStub
[src]
pub fn new(
addr: Option<String>,
tls_config: Option<TlsConfig>
) -> Result<DgraphClientStub, Box<dyn Error>>
[src]
addr: Option<String>,
tls_config: Option<TlsConfig>
) -> Result<DgraphClientStub, Box<dyn Error>>
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
Auto Trait Implementations
impl Send for DgraphClientStub
impl Sync for DgraphClientStub
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,