Skip to main content

TrackerCapabilities

Struct TrackerCapabilities 

Source
pub struct TrackerCapabilities {
Show 15 fields pub comment: bool, pub edit_comment: bool, pub labels: Vec<String>, pub free_labels: bool, pub transitions: Vec<String>, pub assign: bool, pub close: bool, pub create: bool, pub issue_types: Vec<String>, pub priorities: Vec<String>, pub children: String, pub links: Vec<String>, pub replies: bool, pub visibility: String, pub markers: bool,
}
Expand description

What one tracker instance can do, discovered from the provider and the tracker.

Answers about the repository or project are the same for every issue and may be cached by the caller for a while; transitions depends on the issue it was asked about.

Fields§

§comment: bool

New comments can be posted.

§edit_comment: bool

A posted comment can be edited in place.

§labels: Vec<String>

The labels the repository or project has; empty when free_labels.

§free_labels: bool

Labels are free text, so any label is accepted and labels lists none.

§transitions: Vec<String>

The workflow transitions open on the issue asked about; empty without a workflow.

§assign: bool

Assignees can be changed.

§close: bool

An issue can be closed and reopened.

§create: bool

Issues can be created.

§issue_types: Vec<String>

The issue types a created issue may have; empty when the tracker has none.

§priorities: Vec<String>

The priorities a created issue may carry; empty when the tracker has none.

§children: String

How a child issue is attached to its parent: none, sub_issues, subtasks or parent.

§links: Vec<String>

The ways two issues are linked besides naming each other in text: issue_links and remote_links; empty when only text can.

§replies: bool

Comments made after a moment can be listed.

§visibility: String

Whether the repository or project is public, private or unknown.

§markers: bool

A comment can carry a hidden marker the provider finds again.

Trait Implementations§

Source§

impl Clone for TrackerCapabilities

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for TrackerCapabilities

Source§

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

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

impl Default for TrackerCapabilities

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for TrackerCapabilities

Source§

impl FromValue for TrackerCapabilities

Source§

const KINDS: Kinds = ::guatiao::Kinds::MAP

The kinds from_value may accept; any other is refused. Every impl in this crate and every derived one says; the default, [Kinds::ANY], claims every kind, which keeps a type that does not say out of an enum told apart by kind.
Source§

fn from_value(__value: &Value) -> Result<Self, MapError>

Performs the conversion. Read more
Source§

impl FromWalk for TrackerCapabilities

Source§

fn from_walk<__W: Walker>(__walker: __W) -> Result<Self, MapError>

Reads Self from the one value walker holds.
Source§

impl MapRead for TrackerCapabilities

Source§

fn read_map<__M: MapWalker>(__entries: __M) -> Result<Self, MapError>

Reads every entry.
Source§

impl PartialEq for TrackerCapabilities

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl Schema for TrackerCapabilities

Source§

fn kind(__alloc: Alloc) -> KindBuilder

The kind describing values of this type.
§

fn schema_in(alloc: Alloc) -> Result<Value, ValueError>

The whole schema: the fields a consumer fills in, as a root document with its dialect declared. Read more
§

fn schema() -> Result<Value, ValueError>

The whole schema, built through the crate’s own allocator. See schema_in.
Source§

impl StructuralPartialEq for TrackerCapabilities

Source§

impl ToValue for TrackerCapabilities

Source§

fn to_value_in(&self, __alloc: Alloc) -> Result<Value, ValueError>

Performs the conversion through alloc. A derived struct produces a map.
§

fn to_value(&self) -> Result<Value, ValueError>

Performs the conversion through the crate’s own allocator.
Source§

impl Walk for TrackerCapabilities

Source§

fn walk<__V: Visitor>(&self, __visitor: __V) -> Result<__V::Ok, __V::Error>

Hands this value to visitor: one call for a scalar; for a list or a map, the call that opens it, then each element, then end.

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

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>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

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.