#[non_exhaustive]pub struct GetSparqlStreamOutput {
pub last_event_id: HashMap<String, String>,
pub last_trx_timestamp_in_millis: i64,
pub format: String,
pub records: Vec<SparqlRecord>,
pub total_records: i32,
/* private fields */
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.last_event_id: HashMap<String, String>
Sequence identifier of the last change in the stream response.
An event ID is composed of two fields: a commitNum
, which identifies a transaction that changed the graph, and an opNum
, which identifies a specific operation within that transaction:
last_trx_timestamp_in_millis: i64
The time at which the commit for the transaction was requested, in milliseconds from the Unix epoch.
format: String
Serialization format for the change records being returned. Currently, the only supported value is NQUADS
.
records: Vec<SparqlRecord>
An array of serialized change-log stream records included in the response.
total_records: i32
The total number of records in the response.
Implementations§
source§impl GetSparqlStreamOutput
impl GetSparqlStreamOutput
sourcepub fn last_event_id(&self) -> &HashMap<String, String>
pub fn last_event_id(&self) -> &HashMap<String, String>
Sequence identifier of the last change in the stream response.
An event ID is composed of two fields: a commitNum
, which identifies a transaction that changed the graph, and an opNum
, which identifies a specific operation within that transaction:
sourcepub fn last_trx_timestamp_in_millis(&self) -> i64
pub fn last_trx_timestamp_in_millis(&self) -> i64
The time at which the commit for the transaction was requested, in milliseconds from the Unix epoch.
sourcepub fn format(&self) -> &str
pub fn format(&self) -> &str
Serialization format for the change records being returned. Currently, the only supported value is NQUADS
.
sourcepub fn records(&self) -> &[SparqlRecord]
pub fn records(&self) -> &[SparqlRecord]
An array of serialized change-log stream records included in the response.
sourcepub fn total_records(&self) -> i32
pub fn total_records(&self) -> i32
The total number of records in the response.
source§impl GetSparqlStreamOutput
impl GetSparqlStreamOutput
sourcepub fn builder() -> GetSparqlStreamOutputBuilder
pub fn builder() -> GetSparqlStreamOutputBuilder
Creates a new builder-style object to manufacture GetSparqlStreamOutput
.
Trait Implementations§
source§impl Clone for GetSparqlStreamOutput
impl Clone for GetSparqlStreamOutput
source§fn clone(&self) -> GetSparqlStreamOutput
fn clone(&self) -> GetSparqlStreamOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetSparqlStreamOutput
impl Debug for GetSparqlStreamOutput
source§impl PartialEq for GetSparqlStreamOutput
impl PartialEq for GetSparqlStreamOutput
source§fn eq(&self, other: &GetSparqlStreamOutput) -> bool
fn eq(&self, other: &GetSparqlStreamOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for GetSparqlStreamOutput
impl RequestId for GetSparqlStreamOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for GetSparqlStreamOutput
Auto Trait Implementations§
impl Freeze for GetSparqlStreamOutput
impl RefUnwindSafe for GetSparqlStreamOutput
impl Send for GetSparqlStreamOutput
impl Sync for GetSparqlStreamOutput
impl Unpin for GetSparqlStreamOutput
impl UnwindSafe for GetSparqlStreamOutput
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more