pub struct RoleConfig {
pub target: String,
pub scope: String,
pub resource_hint: Option<String>,
}Expand description
What one consumer may mint.
There is deliberately no TTL setting: Entra decides the lifetime, and the only way to shorten it is a tenant-side Configurable Token Lifetime policy.
Fields§
§target: StringWhich m365/config/{name} document to authenticate with.
scope: StringPractically always …/.default: client credentials cannot request a
subset of the app’s permissions.
resource_hint: Option<String>Free-text note about which resource the operator narrowed this app to
(a mail security group, a Sites.Selected site, a Team). Entra does not
report the narrowing back to us, so recording it here is the only way
the _doc block can tell a consumer what it really got.
Trait Implementations§
Source§impl Clone for RoleConfig
impl Clone for RoleConfig
Source§impl Debug for RoleConfig
impl Debug for RoleConfig
Source§impl<'de> Deserialize<'de> for RoleConfig
impl<'de> Deserialize<'de> for RoleConfig
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
Auto Trait Implementations§
impl Freeze for RoleConfig
impl RefUnwindSafe for RoleConfig
impl Send for RoleConfig
impl Sync for RoleConfig
impl Unpin for RoleConfig
impl UnsafeUnpin for RoleConfig
impl UnwindSafe for RoleConfig
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