pub struct ProviderCall {
pub provider: String,
pub action: String,
pub params: Value,
pub surface: ProviderSurface,
pub snapshot_id: String,
pub context: ProviderInvocationContext,
}Fields§
§provider: String§action: String§params: Value§surface: ProviderSurface§snapshot_id: String§context: ProviderInvocationContextImplementations§
Source§impl ProviderCall
impl ProviderCall
pub fn new(action: impl Into<String>, arguments: Value) -> Self
pub fn with_surface(self, surface: ProviderSurface) -> Self
pub fn tool(&self) -> &str
pub fn arguments(&self) -> &Value
pub fn with_context(self, context: ProviderInvocationContext) -> Self
Trait Implementations§
Source§impl Clone for ProviderCall
impl Clone for ProviderCall
Source§fn clone(&self) -> ProviderCall
fn clone(&self) -> ProviderCall
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 moreAuto Trait Implementations§
impl Freeze for ProviderCall
impl RefUnwindSafe for ProviderCall
impl Send for ProviderCall
impl Sync for ProviderCall
impl Unpin for ProviderCall
impl UnsafeUnpin for ProviderCall
impl UnwindSafe for ProviderCall
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