pub struct UpdateRealmRequest {
pub realm_id: u32,
pub name: Option<String>,
pub enabled: Option<bool>,
pub credential: NonceCredential,
pub status: Option<String>,
pub expires_at: Option<u64>,
pub secret_current_hash: Option<String>,
pub secret_previous_hash: Option<String>,
pub secret_previous_valid_until: Option<u64>,
}Fields§
§realm_id: u32Realm identifier
name: Option<String>New name (optional update)
enabled: Option<bool>New enabled status (optional update)
credential: NonceCredentialAuthentication credential
status: Option<String>Active / Inactive / Suspended
expires_at: Option<u64>Expiration timestamp (Unix timestamp)
secret_current_hash: Option<String>Current realm secret hash from superv
secret_previous_hash: Option<String>Previous realm secret hash during rotation
secret_previous_valid_until: Option<u64>Previous secret grace-window deadline
Implementations§
Source§impl UpdateRealmRequest
impl UpdateRealmRequest
Sourcepub fn enabled(&self) -> bool
pub fn enabled(&self) -> bool
Returns the value of enabled, or the default value if enabled is unset.
Sourcepub fn status(&self) -> &str
pub fn status(&self) -> &str
Returns the value of status, or the default value if status is unset.
Sourcepub fn expires_at(&self) -> u64
pub fn expires_at(&self) -> u64
Returns the value of expires_at, or the default value if expires_at is unset.
Sourcepub fn secret_current_hash(&self) -> &str
pub fn secret_current_hash(&self) -> &str
Returns the value of secret_current_hash, or the default value if secret_current_hash is unset.
Sourcepub fn secret_previous_hash(&self) -> &str
pub fn secret_previous_hash(&self) -> &str
Returns the value of secret_previous_hash, or the default value if secret_previous_hash is unset.
Sourcepub fn secret_previous_valid_until(&self) -> u64
pub fn secret_previous_valid_until(&self) -> u64
Returns the value of secret_previous_valid_until, or the default value if secret_previous_valid_until is unset.
Trait Implementations§
Source§impl Clone for UpdateRealmRequest
impl Clone for UpdateRealmRequest
Source§fn clone(&self) -> UpdateRealmRequest
fn clone(&self) -> UpdateRealmRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl CredentialPayload for UpdateRealmRequest
impl CredentialPayload for UpdateRealmRequest
fn credential(&self) -> &NonceCredential
fn auth_payload(&self, node_id: &str) -> String
Source§fn body_digest(&self) -> String
fn body_digest(&self) -> String
credential field) for mutable
operations. Appended to auth_payload as {op}:{node_id}:{subject}:{digest}
so the signature binds the security-critical body fields (e.g. realm secret
hashes) against in-transit tampering. Returns empty for read-only ops, which
have no mutable body beyond what auth_payload already binds.Source§impl Debug for UpdateRealmRequest
impl Debug for UpdateRealmRequest
Source§impl Default for UpdateRealmRequest
impl Default for UpdateRealmRequest
Source§fn default() -> UpdateRealmRequest
fn default() -> UpdateRealmRequest
impl Eq for UpdateRealmRequest
Source§impl Hash for UpdateRealmRequest
impl Hash for UpdateRealmRequest
Source§impl Message for UpdateRealmRequest
impl Message for UpdateRealmRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for UpdateRealmRequest
impl PartialEq for UpdateRealmRequest
impl StructuralPartialEq for UpdateRealmRequest
Auto Trait Implementations§
impl Freeze for UpdateRealmRequest
impl RefUnwindSafe for UpdateRealmRequest
impl Send for UpdateRealmRequest
impl Sync for UpdateRealmRequest
impl Unpin for UpdateRealmRequest
impl UnsafeUnpin for UpdateRealmRequest
impl UnwindSafe for UpdateRealmRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
key and return true if they are equal.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 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>
T in a tonic::Request