pub struct PreparedTool { /* private fields */ }Implementations§
Source§impl PreparedTool
impl PreparedTool
pub fn new( operation: PreparedOperationIdentity, normalized_arguments: Value, serialization_key: Option<PreparedSerializationKey>, executor: Box<dyn PreparedExecutor>, ) -> Result<Self, ToolError>
pub const fn operation(&self) -> &PreparedOperationIdentity
pub fn with_policy_labels(self, labels: Vec<String>) -> Result<Self, ToolError>
pub fn with_permission_resource( self, resource: Option<String>, ) -> Result<Self, ToolError>
pub const fn normalized_arguments(&self) -> &Value
pub fn policy_labels(&self) -> &[Option<String>]
Auto Trait Implementations§
impl !RefUnwindSafe for PreparedTool
impl !UnwindSafe for PreparedTool
impl Freeze for PreparedTool
impl Send for PreparedTool
impl Sync for PreparedTool
impl Unpin for PreparedTool
impl UnsafeUnpin for PreparedTool
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