pub struct FederatedQueryResult {
pub service_endpoint: String,
pub query: String,
pub results: Vec<BindingRow>,
pub variables: Vec<String>,
pub lexicon: LiteralTable,
pub success: bool,
pub error: Option<String>,
pub remote_query_url: Option<String>,
}Expand description
The outcome of executing a single query against a single federated service.
Fields§
§service_endpoint: StringThe endpoint URL the query was dispatched to.
query: StringThe SPARQL query string that was executed.
results: Vec<BindingRow>Result bindings — real rows for both local execution and successful remote
(HTTP) execution. Each slot holds a term hash resolvable via Self::lexicon
(remote) or the local graph lexicon (local).
variables: Vec<String>Result variable names in slot order (populated for remote SPARQL-results responses; empty for a bare local execution that carries its own ctx).
lexicon: LiteralTableHash → text (+ lang/datatype) for the terms in results, so remote string
terms are resolvable in the local u64-term model. Empty for local execution
(whose terms resolve via the local graph lexicon).
success: boolWhether execution succeeded.
error: Option<String>Error message when success is false.
remote_query_url: Option<String>For remote endpoints, the fully-constructed query URL that was fetched (kept
for provenance/debugging). None for local execution.
Implementations§
Trait Implementations§
Source§impl Clone for FederatedQueryResult
impl Clone for FederatedQueryResult
Source§fn clone(&self) -> FederatedQueryResult
fn clone(&self) -> FederatedQueryResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for FederatedQueryResult
impl RefUnwindSafe for FederatedQueryResult
impl Send for FederatedQueryResult
impl Sync for FederatedQueryResult
impl Unpin for FederatedQueryResult
impl UnsafeUnpin for FederatedQueryResult
impl UnwindSafe for FederatedQueryResult
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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