pub struct Versions { /* private fields */ }versions only.Expand description
Implements a client for the Dialogflow API.
§Example
let client = Versions::builder().build().await?;
// use `client` to make requests to the Dialogflow API.§Service Description
Service for managing Versions.
§Configuration
To configure Versions use the with_* methods in the type returned
by builder(). The default configuration should
work for most applications. Common configuration changes include
- with_endpoint(): by default this client uses the global default endpoint
(
https://dialogflow.googleapis.com). Applications using regional endpoints or running in restricted networks (e.g. a network configured override this default. - with_credentials(): by default this client uses Application Default Credentials. Applications using custom authentication may need to override this default.
§Pooling and Cloning
Versions holds a connection pool internally, it is advised to
create one and the reuse it. You do not need to wrap Versions in
an Rc or Arc to reuse it, because it
already uses an Arc internally.
Implementations§
Source§impl Versions
impl Versions
Sourcepub fn builder() -> ClientBuilder
pub fn builder() -> ClientBuilder
Returns a builder for Versions.
let client = Versions::builder().build().await?;Sourcepub fn from_stub<T>(stub: T) -> Selfwhere
T: Versions + 'static,
pub fn from_stub<T>(stub: T) -> Selfwhere
T: Versions + 'static,
Creates a new client from the provided stub.
The most common case for calling this function is in tests mocking the client’s behavior.
Sourcepub fn list_versions(&self) -> ListVersions
pub fn list_versions(&self) -> ListVersions
Returns the list of all versions of the specified agent.
Sourcepub fn get_version(&self) -> GetVersion
pub fn get_version(&self) -> GetVersion
Retrieves the specified agent version.
Sourcepub fn create_version(&self) -> CreateVersion
pub fn create_version(&self) -> CreateVersion
Creates an agent version.
The new version points to the agent instance in the “default” environment.
Sourcepub fn update_version(&self) -> UpdateVersion
pub fn update_version(&self) -> UpdateVersion
Updates the specified agent version.
Note that this method does not allow you to update the state of the agent the given version points to. It allows you to update only mutable properties of the version resource.
Sourcepub fn delete_version(&self) -> DeleteVersion
pub fn delete_version(&self) -> DeleteVersion
Delete the specified agent version.
Sourcepub fn list_locations(&self) -> ListLocations
pub fn list_locations(&self) -> ListLocations
Lists information about the supported locations for this service.
Sourcepub fn get_location(&self) -> GetLocation
pub fn get_location(&self) -> GetLocation
Gets information about a location.
Sourcepub fn list_operations(&self) -> ListOperations
pub fn list_operations(&self) -> ListOperations
Provides the Operations service functionality in this service.
Sourcepub fn get_operation(&self) -> GetOperation
pub fn get_operation(&self) -> GetOperation
Provides the Operations service functionality in this service.
Sourcepub fn cancel_operation(&self) -> CancelOperation
pub fn cancel_operation(&self) -> CancelOperation
Provides the Operations service functionality in this service.