pub struct TokenAdminRevocationRule {
pub created_before: Option<OffsetDateTime>,
pub scopes: Option<String>,
}Expand description
A rule which is applied to disable any incoming delegated authorization which matches the given properties.
Fields§
§created_before: Option<OffsetDateTime>A datetime cutoff. Tokens created before this time will be rejected. This is an optional parameter. If omitted, defaults to the time at which the rule was created.
scopes: Option<String>A string containing a space-delimited list of OAuth scopes. A token matching any one of the scopes will be rejected. For a list of all OAuth scopes supported by Azure DevOps, see:https://docs.microsoft.com/en-us/azure/devops/integrate/get-started/authentication/oauth?view=azure-devops#scopes This is a mandatory parameter.
Implementations§
Trait Implementations§
source§impl Clone for TokenAdminRevocationRule
impl Clone for TokenAdminRevocationRule
source§fn clone(&self) -> TokenAdminRevocationRule
fn clone(&self) -> TokenAdminRevocationRule
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 TokenAdminRevocationRule
impl Debug for TokenAdminRevocationRule
source§impl Default for TokenAdminRevocationRule
impl Default for TokenAdminRevocationRule
source§fn default() -> TokenAdminRevocationRule
fn default() -> TokenAdminRevocationRule
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TokenAdminRevocationRule
impl<'de> Deserialize<'de> for TokenAdminRevocationRule
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<TokenAdminRevocationRule> for TokenAdminRevocationRule
impl PartialEq<TokenAdminRevocationRule> for TokenAdminRevocationRule
source§fn eq(&self, other: &TokenAdminRevocationRule) -> bool
fn eq(&self, other: &TokenAdminRevocationRule) -> bool
This method tests for
self and other values to be equal, and is used
by ==.