#[non_exhaustive]pub struct SqlAclEntry {
pub value: String,
pub label: String,
pub expiration: Option<Expiration>,
/* private fields */
}Expand description
An entry for an Access Control list.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.value: StringThe allowlisted value for the access control list.
label: StringA label to identify this entry.
expiration: Option<Expiration>The access control entry entry expiration.
Implementations§
Source§impl SqlAclEntry
impl SqlAclEntry
pub fn new() -> Self
Sourcepub fn set_expiration<T: Into<Option<Expiration>>>(self, v: T) -> Self
pub fn set_expiration<T: Into<Option<Expiration>>>(self, v: T) -> Self
Sets the value of expiration.
Note that all the setters affecting expiration are mutually
exclusive.
Sourcepub fn expire_time(&self) -> Option<&Box<Timestamp>>
pub fn expire_time(&self) -> Option<&Box<Timestamp>>
The value of expiration
if it holds a ExpireTime, None if the field is not set or
holds a different branch.
Sourcepub fn set_expire_time<T: Into<Box<Timestamp>>>(self, v: T) -> Self
pub fn set_expire_time<T: Into<Box<Timestamp>>>(self, v: T) -> Self
Sets the value of expiration
to hold a ExpireTime.
Note that all the setters affecting expiration are
mutually exclusive.
Trait Implementations§
Source§impl Clone for SqlAclEntry
impl Clone for SqlAclEntry
Source§fn clone(&self) -> SqlAclEntry
fn clone(&self) -> SqlAclEntry
Returns a duplicate of the value. Read more
1.0.0 · 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 SqlAclEntry
impl Debug for SqlAclEntry
Source§impl Default for SqlAclEntry
impl Default for SqlAclEntry
Source§fn default() -> SqlAclEntry
fn default() -> SqlAclEntry
Returns the “default value” for a type. Read more
Source§impl Message for SqlAclEntry
impl Message for SqlAclEntry
Source§impl PartialEq for SqlAclEntry
impl PartialEq for SqlAclEntry
impl StructuralPartialEq for SqlAclEntry
Auto Trait Implementations§
impl Freeze for SqlAclEntry
impl RefUnwindSafe for SqlAclEntry
impl Send for SqlAclEntry
impl Sync for SqlAclEntry
impl Unpin for SqlAclEntry
impl UnwindSafe for SqlAclEntry
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