Struct azure_devops_rust_api::wit::queries::Client
source · pub struct Client(_);Implementations§
source§impl Client
impl Client
sourcepub fn search_queries(
&self,
organization: impl Into<String>,
project: impl Into<String>,
filter: impl Into<String>
) -> RequestBuilder
pub fn search_queries( &self, organization: impl Into<String>, project: impl Into<String>, filter: impl Into<String> ) -> RequestBuilder
Searches all queries the user has access to in the current project
Arguments:
organization: The name of the Azure DevOps organization.project: Project ID or project namefilter: The text to filter the queries with.
sourcepub fn list(
&self,
organization: impl Into<String>,
project: impl Into<String>
) -> RequestBuilder
pub fn list( &self, organization: impl Into<String>, project: impl Into<String> ) -> RequestBuilder
Gets the root queries and their children
Arguments:
organization: The name of the Azure DevOps organization.project: Project ID or project name
sourcepub fn get(
&self,
organization: impl Into<String>,
project: impl Into<String>,
query: impl Into<String>
) -> RequestBuilder
pub fn get( &self, organization: impl Into<String>, project: impl Into<String>, query: impl Into<String> ) -> RequestBuilder
Retrieves an individual query and its children
Arguments:
organization: The name of the Azure DevOps organization.project: Project ID or project namequery: ID or path of the query.
sourcepub fn create(
&self,
organization: impl Into<String>,
body: impl Into<QueryHierarchyItem>,
project: impl Into<String>,
query: impl Into<String>
) -> RequestBuilder
pub fn create( &self, organization: impl Into<String>, body: impl Into<QueryHierarchyItem>, project: impl Into<String>, query: impl Into<String> ) -> RequestBuilder
Creates a query, or moves a query.
Learn more about Work Item Query Language (WIQL) syntax here.
Arguments:
organization: The name of the Azure DevOps organization.body: The query to create.project: Project ID or project namequery: The parent id or path under which the query is to be created.
sourcepub fn update(
&self,
organization: impl Into<String>,
body: impl Into<QueryHierarchyItem>,
project: impl Into<String>,
query: impl Into<String>
) -> RequestBuilder
pub fn update( &self, organization: impl Into<String>, body: impl Into<QueryHierarchyItem>, project: impl Into<String>, query: impl Into<String> ) -> RequestBuilder
Update a query or a folder. This allows you to update, rename and move queries and folders.
Arguments:
organization: The name of the Azure DevOps organization.body: The query to update.project: Project ID or project namequery: The ID or path for the query to update.
sourcepub fn delete(
&self,
organization: impl Into<String>,
project: impl Into<String>,
query: impl Into<String>
) -> RequestBuilder
pub fn delete( &self, organization: impl Into<String>, project: impl Into<String>, query: impl Into<String> ) -> RequestBuilder
Delete a query or a folder. This deletes any permission change on the deleted query or folder and any of its descendants if it is a folder. It is important to note that the deleted permission changes cannot be recovered upon undeleting the query or folder.
Arguments:
organization: The name of the Azure DevOps organization.project: Project ID or project namequery: ID or path of the query or folder to delete.
sourcepub fn get_queries_batch(
&self,
organization: impl Into<String>,
body: impl Into<QueryBatchGetRequest>,
project: impl Into<String>
) -> RequestBuilder
pub fn get_queries_batch( &self, organization: impl Into<String>, body: impl Into<QueryBatchGetRequest>, project: impl Into<String> ) -> RequestBuilder
Gets a list of queries by ids (Maximum 1000)
Arguments:
organization: The name of the Azure DevOps organization.project: Project ID or project name