pub struct PromptGrant {
pub prompt_name: String,
pub operations: Vec<Operation>,
}Expand description
Authorization for retrieving a prompt by name.
Fields§
§prompt_name: StringPrompt name pattern.
operations: Vec<Operation>Allowed operations.
Implementations§
Source§impl PromptGrant
impl PromptGrant
pub fn is_subset_of(&self, parent: &PromptGrant) -> bool
Trait Implementations§
Source§impl Clone for PromptGrant
impl Clone for PromptGrant
Source§fn clone(&self) -> PromptGrant
fn clone(&self) -> PromptGrant
Returns a duplicate 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 PromptGrant
impl Debug for PromptGrant
Source§impl<'de> Deserialize<'de> for PromptGrant
impl<'de> Deserialize<'de> for PromptGrant
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PromptGrant, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PromptGrant, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PromptGrant
impl Serialize for PromptGrant
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for PromptGrant
impl RefUnwindSafe for PromptGrant
impl Send for PromptGrant
impl Sync for PromptGrant
impl Unpin for PromptGrant
impl UnsafeUnpin for PromptGrant
impl UnwindSafe for PromptGrant
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