pub struct Resource { /* private fields */ }Expand description
Resource selected for a policy decision.
Implementations§
Source§impl Resource
impl Resource
Sourcepub fn new(kind: ResourceKind, name: impl Into<CheetahString>) -> Self
pub fn new(kind: ResourceKind, name: impl Into<CheetahString>) -> Self
Creates a new Resource.
Sourcepub fn topic(name: impl Into<CheetahString>) -> Self
pub fn topic(name: impl Into<CheetahString>) -> Self
Creates the topic value.
Sourcepub fn kind(&self) -> ResourceKind
pub fn kind(&self) -> ResourceKind
Returns the kind.
Trait Implementations§
impl Eq for Resource
impl StructuralPartialEq for Resource
Auto Trait Implementations§
impl Freeze for Resource
impl RefUnwindSafe for Resource
impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl UnsafeUnpin for Resource
impl UnwindSafe for Resource
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