pub struct QueryHierarchyItem {
Show 26 fields pub work_item_tracking_resource: WorkItemTrackingResource, pub children: Vec<QueryHierarchyItem>, pub clauses: Option<WorkItemQueryClause>, pub columns: Vec<WorkItemFieldReference>, pub created_by: Option<IdentityReference>, pub created_date: Option<OffsetDateTime>, pub filter_options: Option<FilterOptions>, pub has_children: Option<bool>, pub id: Option<String>, pub is_deleted: Option<bool>, pub is_folder: Option<bool>, pub is_invalid_syntax: Option<bool>, pub is_public: Option<bool>, pub last_executed_by: Option<IdentityReference>, pub last_executed_date: Option<OffsetDateTime>, pub last_modified_by: Option<IdentityReference>, pub last_modified_date: Option<OffsetDateTime>, pub link_clauses: Option<WorkItemQueryClause>, pub name: Option<String>, pub path: Option<String>, pub query_recursion_option: Option<QueryRecursionOption>, pub query_type: Option<QueryType>, pub sort_columns: Vec<WorkItemQuerySortColumn>, pub source_clauses: Option<WorkItemQueryClause>, pub target_clauses: Option<WorkItemQueryClause>, pub wiql: Option<String>,
}
Expand description

Represents an item in the work item query hierarchy. This can be either a query or a folder.

Fields§

§work_item_tracking_resource: WorkItemTrackingResource§children: Vec<QueryHierarchyItem>

The child query items inside a query folder.

§clauses: Option<WorkItemQueryClause>

Represents a clause in a work item query. This shows the structure of a work item query.

§columns: Vec<WorkItemFieldReference>

The columns of the query.

§created_by: Option<IdentityReference>
§created_date: Option<OffsetDateTime>

When the query item was created.

§filter_options: Option<FilterOptions>

The link query mode.

§has_children: Option<bool>

If this is a query folder, indicates if it contains any children.

§id: Option<String>

The id of the query item.

§is_deleted: Option<bool>

Indicates if this query item is deleted. Setting this to false on a deleted query item will undelete it. Undeleting a query or folder will not bring back the permission changes that were previously applied to it.

§is_folder: Option<bool>

Indicates if this is a query folder or a query.

§is_invalid_syntax: Option<bool>

Indicates if the WIQL of this query is invalid. This could be due to invalid syntax or a no longer valid area/iteration path.

§is_public: Option<bool>

Indicates if this query item is public or private.

§last_executed_by: Option<IdentityReference>
§last_executed_date: Option<OffsetDateTime>

When the query was last run.

§last_modified_by: Option<IdentityReference>
§last_modified_date: Option<OffsetDateTime>

When the query item was last modified.

§link_clauses: Option<WorkItemQueryClause>

Represents a clause in a work item query. This shows the structure of a work item query.

§name: Option<String>

The name of the query item.

§path: Option<String>

The path of the query item.

§query_recursion_option: Option<QueryRecursionOption>

The recursion option for use in a tree query.

§query_type: Option<QueryType>

The type of query.

§sort_columns: Vec<WorkItemQuerySortColumn>

The sort columns of the query.

§source_clauses: Option<WorkItemQueryClause>

Represents a clause in a work item query. This shows the structure of a work item query.

§target_clauses: Option<WorkItemQueryClause>

Represents a clause in a work item query. This shows the structure of a work item query.

§wiql: Option<String>

The WIQL text of the query

Implementations§

source§

impl QueryHierarchyItem

source

pub fn new(work_item_tracking_resource: WorkItemTrackingResource) -> Self

Trait Implementations§

source§

impl Clone for QueryHierarchyItem

source§

fn clone(&self) -> QueryHierarchyItem

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for QueryHierarchyItem

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for QueryHierarchyItem

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for QueryHierarchyItem

source§

fn eq(&self, other: &QueryHierarchyItem) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for QueryHierarchyItem

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for QueryHierarchyItem

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for T
where T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,