pub enum ConsentRequest {
RequestConsent {
source: Resource,
destination: (Option<String>, Resource),
},
PendingRequests,
SetConsent {
source: Resource,
destination: (Option<String>, Resource),
consent: bool,
},
}
Variants§
RequestConsent
Request consent for a data flow operation.
Requests consent from the resource owner for a data flow operation.
Fields
PendingRequests
Retrieve all pending consent requests.
Returns a list of all data flow operations currently awaiting consent.
SetConsent
Set consent decision for a specific data flow operation.
Updates the consent status for a pending data flow operation.
Trait Implementations§
Source§impl Debug for ConsentRequest
impl Debug for ConsentRequest
Source§impl PartialEq for ConsentRequest
impl PartialEq for ConsentRequest
Source§impl Service<ConsentRequest> for ConsentService
impl Service<ConsentRequest> for ConsentService
Source§type Response = ConsentResponse
type Response = ConsentResponse
Responses given by the service.
Source§type Error = TraceabilityError
type Error = TraceabilityError
Errors produced by the service.
Source§type Future = Pin<Box<dyn Future<Output = Result<<ConsentService as Service<ConsentRequest>>::Response, <ConsentService as Service<ConsentRequest>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<ConsentService as Service<ConsentRequest>>::Response, <ConsentService as Service<ConsentRequest>>::Error>> + Send>>
The future response value.
Source§fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
Returns
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreSource§fn call(&mut self, request: ConsentRequest) -> Self::Future
fn call(&mut self, request: ConsentRequest) -> Self::Future
Process the request and return the response asynchronously. Read more
impl Eq for ConsentRequest
impl StructuralPartialEq for ConsentRequest
Auto Trait Implementations§
impl Freeze for ConsentRequest
impl RefUnwindSafe for ConsentRequest
impl Send for ConsentRequest
impl Sync for ConsentRequest
impl Unpin for ConsentRequest
impl UnwindSafe for ConsentRequest
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
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§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>
Converts
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>
Converts
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered
].