pub enum ConsentRequest {
RequestConsent {
source: Resource,
destination: Destination,
},
TakeResourceOwnership(Resource),
SetConsent {
source: Resource,
destination: Destination,
consent: bool,
},
}Expand description
Consent service request types.
API for the consent service, which manages user consent for data flow operations.
Variants§
RequestConsent
Request consent for a data flow operation.
Requests consent from the resource owner for a data flow operation.
Fields
§
destination: DestinationDestination resource receiving data
TakeResourceOwnership(Resource)
Take ownership of a resource.
The owner of the resource will be able to receive consent request notifications and send back decisions for the resource through the returned channels.
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 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<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].