pub struct AccessPolicy {
pub start: Option<OffsetDateTime>,
pub expiry: Option<OffsetDateTime>,
pub permission: Option<String>,
}
Expand description
An Access policy
Fields§
§start: Option<OffsetDateTime>
the date-time the policy is active
expiry: Option<OffsetDateTime>
the date-time the policy expires
permission: Option<String>
the permissions for the acl policy
Implementations§
source§impl AccessPolicy
impl AccessPolicy
Trait Implementations§
source§impl Clone for AccessPolicy
impl Clone for AccessPolicy
source§fn clone(&self) -> AccessPolicy
fn clone(&self) -> AccessPolicy
Returns a copy 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 AccessPolicy
impl Debug for AccessPolicy
source§impl Default for AccessPolicy
impl Default for AccessPolicy
source§fn default() -> AccessPolicy
fn default() -> AccessPolicy
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AccessPolicy
impl<'de> Deserialize<'de> for AccessPolicy
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
source§impl PartialEq for AccessPolicy
impl PartialEq for AccessPolicy
source§impl Serialize for AccessPolicy
impl Serialize for AccessPolicy
impl StructuralPartialEq for AccessPolicy
Auto Trait Implementations§
impl Freeze for AccessPolicy
impl RefUnwindSafe for AccessPolicy
impl Send for AccessPolicy
impl Sync for AccessPolicy
impl Unpin for AccessPolicy
impl UnwindSafe for AccessPolicy
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)