pub struct AgentClient { /* private fields */ }Expand description
A client scoped to a single agent.
Implementations§
Source§impl AgentClient
impl AgentClient
Sourcepub fn new(
catalog_name: impl Into<String>,
schema_name: impl Into<String>,
agent_name: impl Into<String>,
client: AgentServiceClient,
) -> Self
pub fn new( catalog_name: impl Into<String>, schema_name: impl Into<String>, agent_name: impl Into<String>, client: AgentServiceClient, ) -> Self
Create a client bound to the resource’s name components.
Sourcepub fn from_full_name(
full_name: impl Into<String>,
client: AgentServiceClient,
) -> Self
pub fn from_full_name( full_name: impl Into<String>, client: AgentServiceClient, ) -> Self
Create a agent client from its dot-joined full name (e.g. "catalog_name.schema_name.agent_name").
Sourcepub fn catalog_name(&self) -> &str
pub fn catalog_name(&self) -> &str
The catalog_name component of this resource’s name.
Sourcepub fn schema_name(&self) -> &str
pub fn schema_name(&self) -> &str
The schema_name component of this resource’s name.
Sourcepub fn full_name(&self) -> String
pub fn full_name(&self) -> String
The fully-qualified name of this resource (its dot-joined name components).
pub fn get(&self) -> GetAgentBuilder
pub fn update(&self) -> UpdateAgentBuilder
pub fn delete(&self) -> DeleteAgentBuilder
Trait Implementations§
Source§impl Clone for AgentClient
impl Clone for AgentClient
Source§fn clone(&self) -> AgentClient
fn clone(&self) -> AgentClient
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 AgentClient
impl !UnwindSafe for AgentClient
impl Freeze for AgentClient
impl Send for AgentClient
impl Sync for AgentClient
impl Unpin for AgentClient
impl UnsafeUnpin for AgentClient
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