pub struct ResolvedEphemeralAccess {
pub access_policy_uid: String,
pub access_policy_generation: i64,
pub target_policy_uid: String,
pub target_policy_generation: i64,
pub target_database_fingerprint: String,
pub granted_duration: String,
pub bundle_encoding: String,
pub bundle_hash: String,
pub memberships: Vec<ResolvedEphemeralMembership>,
}Fields§
§access_policy_uid: String§access_policy_generation: i64§target_policy_uid: String§target_policy_generation: i64§target_database_fingerprint: StringSHA-256 fingerprint of resolved host, port, and database name. It binds activation and revocation to one database without persisting secrets.
granted_duration: String§bundle_encoding: String§bundle_hash: String§memberships: Vec<ResolvedEphemeralMembership>Implementations§
Source§impl ResolvedEphemeralAccess
impl ResolvedEphemeralAccess
pub fn canonical_bundle_bytes(&self) -> Vec<u8> ⓘ
pub fn compute_bundle_hash(&self) -> String
pub fn has_valid_bundle_hash(&self) -> bool
Trait Implementations§
Source§impl Clone for ResolvedEphemeralAccess
impl Clone for ResolvedEphemeralAccess
Source§fn clone(&self) -> ResolvedEphemeralAccess
fn clone(&self) -> ResolvedEphemeralAccess
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResolvedEphemeralAccess
impl Debug for ResolvedEphemeralAccess
Source§impl<'de> Deserialize<'de> for ResolvedEphemeralAccess
impl<'de> Deserialize<'de> for ResolvedEphemeralAccess
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ResolvedEphemeralAccess
Source§impl JsonSchema for ResolvedEphemeralAccess
impl JsonSchema for ResolvedEphemeralAccess
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§fn json_schema(generate: &mut SchemaGenerator) -> Schema
fn json_schema(generate: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§impl PartialEq for ResolvedEphemeralAccess
impl PartialEq for ResolvedEphemeralAccess
Source§impl Serialize for ResolvedEphemeralAccess
impl Serialize for ResolvedEphemeralAccess
impl StructuralPartialEq for ResolvedEphemeralAccess
Auto Trait Implementations§
impl Freeze for ResolvedEphemeralAccess
impl RefUnwindSafe for ResolvedEphemeralAccess
impl Send for ResolvedEphemeralAccess
impl Sync for ResolvedEphemeralAccess
impl Unpin for ResolvedEphemeralAccess
impl UnsafeUnpin for ResolvedEphemeralAccess
impl UnwindSafe for ResolvedEphemeralAccess
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> ⓘ
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ServiceExt for T
impl<T> ServiceExt for T
Source§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Apply a transformation to the response body. Read more
Source§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
Source§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more