[][src]Enum indradb_proto::transaction_request::Request

pub enum Request {
    CreateVertex(Vertex),
    CreateVertexFromType(Type),
    GetVertices(VertexQuery),
    DeleteVertices(VertexQuery),
    GetVertexCount(()),
    CreateEdge(EdgeKey),
    GetEdges(EdgeQuery),
    DeleteEdges(EdgeQuery),
    GetEdgeCount(GetEdgeCountRequest),
    GetVertexProperties(VertexPropertyQuery),
    SetVertexProperties(SetVertexPropertiesRequest),
    DeleteVertexProperties(VertexPropertyQuery),
    GetEdgeProperties(EdgePropertyQuery),
    SetEdgeProperties(SetEdgePropertiesRequest),
    DeleteEdgeProperties(EdgePropertyQuery),
    GetAllVertexProperties(VertexQuery),
    GetAllEdgeProperties(EdgeQuery),
}

Variants

CreateVertex(Vertex)

Creates a new vertex. Returns whether the vertex was successfully created - if this is false, it's because a vertex with the same UUID already exists.

CreateVertexFromType(Type)

Creates a new vertex with just a type specification. As opposed to CreateVertex, this is used when you do not want to manually specify the vertex's UUID. Returns the new vertex's UUID.

GetVertices(VertexQuery)

Gets a range of vertices specified by a query.

DeleteVertices(VertexQuery)

Deletes existing vertices specified by a query.

GetVertexCount(())

Gets the number of vertices in the datastore.

CreateEdge(EdgeKey)

Creates a new edge. If the edge already exists, this will update it with a new update datetime. Returns whether the edge was successfully created - if this is false, it's because one of the specified vertices is missing.

GetEdges(EdgeQuery)

Gets a range of edges specified by a query.

DeleteEdges(EdgeQuery)

Deletes a set of edges specified by a query.

GetEdgeCount(GetEdgeCountRequest)

Gets the number of edges associated with a vertex.

GetVertexProperties(VertexPropertyQuery)

Gets vertex properties.

SetVertexProperties(SetVertexPropertiesRequest)

Sets vertex properties.

DeleteVertexProperties(VertexPropertyQuery)

Deletes vertex properties.

GetEdgeProperties(EdgePropertyQuery)

Gets edge properties.

SetEdgeProperties(SetEdgePropertiesRequest)

Sets edge properties.

DeleteEdgeProperties(EdgePropertyQuery)

Deletes edge properties.

GetAllVertexProperties(VertexQuery)

Gets vertexes and all properties for each vertex.

GetAllEdgeProperties(EdgeQuery)

Gets edges and all properties for each edge.

Implementations

impl Request[src]

pub fn encode<B>(&self, buf: &mut B) where
    B: BufMut
[src]

pub fn merge<B>(
    field: &mut Option<Request>,
    tag: u32,
    wire_type: WireType,
    buf: &mut B,
    ctx: DecodeContext
) -> Result<(), DecodeError> where
    B: Buf
[src]

pub fn encoded_len(&self) -> usize[src]

Trait Implementations

impl Clone for Request[src]

impl Debug for Request[src]

impl PartialEq<Request> for Request[src]

impl StructuralPartialEq for Request[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]