pub struct AgentServiceClient { /* private fields */ }Expand description
HTTP client for service operations
Implementations§
Source§impl AgentServiceClient
impl AgentServiceClient
Sourcepub fn new(client: CloudClient, base_url: Url) -> Self
pub fn new(client: CloudClient, base_url: Url) -> Self
Create a new client instance
Sourcepub async fn list_agents(
&self,
request: &ListAgentsRequest,
) -> Result<ListAgentsResponse>
pub async fn list_agents( &self, request: &ListAgentsRequest, ) -> Result<ListAgentsResponse>
Lists agents.
pub async fn create_agent(&self, request: &CreateAgentRequest) -> Result<Agent>
pub async fn get_agent(&self, request: &GetAgentRequest) -> Result<Agent>
pub async fn update_agent(&self, request: &UpdateAgentRequest) -> Result<Agent>
pub async fn delete_agent(&self, request: &DeleteAgentRequest) -> Result<()>
Trait Implementations§
Source§impl Clone for AgentServiceClient
impl Clone for AgentServiceClient
Source§fn clone(&self) -> AgentServiceClient
fn clone(&self) -> AgentServiceClient
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 !RefUnwindSafe for AgentServiceClient
impl !UnwindSafe for AgentServiceClient
impl Freeze for AgentServiceClient
impl Send for AgentServiceClient
impl Sync for AgentServiceClient
impl Unpin for AgentServiceClient
impl UnsafeUnpin for AgentServiceClient
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