pub struct AgentThreadGrants {
pub all: bool,
pub scope: String,
pub thread_ids: Vec<String>,
pub list: bool,
pub create: bool,
pub write: bool,
pub read: bool,
pub delete: bool,
}Fields§
§all: bool§scope: String§thread_ids: Vec<String>§list: bool§create: bool§write: bool§read: bool§delete: boolImplementations§
Source§impl AgentThreadGrants
impl AgentThreadGrants
pub fn can_create(&self, scope: &str) -> bool
pub fn can_list(&self, scope: &str) -> bool
pub fn can_update(&self) -> bool
pub fn can_read(&self, thread_id: &str) -> bool
pub fn can_write(&self, thread_id: &str) -> bool
pub fn can_delete(&self, thread_id: &str) -> bool
Trait Implementations§
Source§impl Clone for AgentThreadGrants
impl Clone for AgentThreadGrants
Source§fn clone(&self) -> AgentThreadGrants
fn clone(&self) -> AgentThreadGrants
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AgentThreadGrants
impl Debug for AgentThreadGrants
Source§impl Default for AgentThreadGrants
impl Default for AgentThreadGrants
Source§fn default() -> AgentThreadGrants
fn default() -> AgentThreadGrants
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AgentThreadGrantswhere
AgentThreadGrants: Default,
impl<'de> Deserialize<'de> for AgentThreadGrantswhere
AgentThreadGrants: Default,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AgentThreadGrants, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AgentThreadGrants, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AgentThreadGrants
impl PartialEq for AgentThreadGrants
Source§impl Serialize for AgentThreadGrants
impl Serialize for AgentThreadGrants
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
impl StructuralPartialEq for AgentThreadGrants
Auto Trait Implementations§
impl Freeze for AgentThreadGrants
impl RefUnwindSafe for AgentThreadGrants
impl Send for AgentThreadGrants
impl Sync for AgentThreadGrants
impl Unpin for AgentThreadGrants
impl UnsafeUnpin for AgentThreadGrants
impl UnwindSafe for AgentThreadGrants
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