#[non_exhaustive]pub enum GrantScope {
Turn,
Session,
Project,
}Expand description
How long a Grant lasts.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Turn
Until the next user turn starts: a skill’s allowed-tools.
Session
For the rest of the session: “always allow” answered for this session.
Project
For this project, kept in its settings.local.json; a session with no
project keeps it for the session.
Trait Implementations§
Source§impl Clone for GrantScope
impl Clone for GrantScope
impl Copy for GrantScope
Source§impl Debug for GrantScope
impl Debug for GrantScope
impl Eq for GrantScope
Source§impl PartialEq for GrantScope
impl PartialEq for GrantScope
impl StructuralPartialEq for GrantScope
Auto Trait Implementations§
impl Forget for GrantScope
impl Freeze for GrantScope
impl Move for GrantScope
impl RefUnwindSafe for GrantScope
impl Send for GrantScope
impl Sync for GrantScope
impl Unpin for GrantScope
impl UnsafeUnpin for GrantScope
impl UnwindSafe for GrantScope
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