Skip to main content

Favorite

Struct Favorite 

Source
pub struct Favorite {
Show 35 fields pub id: Option<String>, pub created_at: Option<DateTime<Utc>>, pub updated_at: Option<DateTime<Utc>>, pub archived_at: Option<DateTime<Utc>>, pub type: Option<String>, pub parent: Option<Box<Favorite>>, pub folder_name: Option<String>, pub project_tab: Option<ProjectTab>, pub predefined_view_type: Option<String>, pub initiative_tab: Option<InitiativeTab>, pub owner: Option<Box<User>>, pub sort_order: Option<f64>, pub children: Option<FavoriteConnection>, pub issue: Option<Box<Issue>>, pub project: Option<Box<Project>>, pub facet: Option<Box<Facet>>, pub project_team: Option<Box<Team>>, pub cycle: Option<Box<Cycle>>, pub custom_view: Option<Box<CustomView>>, pub predefined_view_team: Option<Box<Team>>, pub document: Option<Box<Document>>, pub initiative: Option<Box<Initiative>>, pub label: Option<Box<IssueLabel>>, pub project_label: Option<Box<ProjectLabel>>, pub user: Option<Box<User>>, pub customer: Option<Box<Customer>>, pub dashboard: Option<Box<Dashboard>>, pub pull_request: Option<Box<PullRequest>>, pub release: Option<Box<Release>>, pub release_pipeline: Option<ReleasePipeline>, pub url: Option<String>, pub title: Option<String>, pub detail: Option<String>, pub color: Option<String>, pub icon: Option<String>,
}
Expand description

A user’s bookmarked item that appears in their sidebar for quick access. Favorites can reference various entity types including issues, projects, cycles, views, documents, initiatives, labels, users, customers, dashboards, and pull requests. Favorites can be organized into folders and ordered by the user. Each favorite is owned by a single user and links to exactly one target entity (or is a folder containing other favorites).

Fields§

§id: Option<String>

The unique identifier of the entity.

§created_at: Option<DateTime<Utc>>

The time at which the entity was created.

§updated_at: Option<DateTime<Utc>>

The last time at which the entity was meaningfully updated. This is the same as the creation time if the entity hasn’t been updated after creation.

§archived_at: Option<DateTime<Utc>>

The time at which the entity was archived. Null if the entity has not been archived.

§type: Option<String>

The type of entity this favorite references, such as ‘issue’, ‘project’, ‘cycle’, ‘customView’, ‘document’, ‘folder’, etc. Determines which associated entity field is populated.

§parent: Option<Box<Favorite>>

The parent folder of the favorite. Null if the favorite is at the top level of the sidebar. Only favorites of type ‘folder’ can be parents.

§folder_name: Option<String>

The name of the folder. Only applies to favorites of type folder.

§project_tab: Option<ProjectTab>

The targeted tab of the project.

§predefined_view_type: Option<String>

The type of favorited predefined view (e.g., ‘allIssues’, ‘activeCycle’, ‘backlog’, ‘triage’). Only populated when the favorite type is ‘predefinedView’.

§initiative_tab: Option<InitiativeTab>

The targeted tab of the initiative.

§owner: Option<Box<User>>

The user who owns this favorite. Favorites are personal and only visible to their owner.

§sort_order: Option<f64>

The position of this item in the user’s favorites list. Lower values appear first. Used to maintain user-defined ordering within the sidebar.

§children: Option<FavoriteConnection>

Children of the favorite. Only applies to favorites of type folder.

§issue: Option<Box<Issue>>

The favorited issue.

§project: Option<Box<Project>>

The favorited project.

§facet: Option<Box<Facet>>

INTERNAL The favorited facet.

§project_team: Option<Box<Team>>

DEPRECATED The favorited team of the project.

§cycle: Option<Box<Cycle>>

The favorited cycle.

§custom_view: Option<Box<CustomView>>

The favorited custom view.

§predefined_view_team: Option<Box<Team>>

The team of the favorited predefined view.

§document: Option<Box<Document>>

The favorited document.

§initiative: Option<Box<Initiative>>

The favorited initiative.

§label: Option<Box<IssueLabel>>

The favorited label.

§project_label: Option<Box<ProjectLabel>>

The favorited project label.

§user: Option<Box<User>>

The favorited user.

§customer: Option<Box<Customer>>

The favorited customer.

§dashboard: Option<Box<Dashboard>>

The favorited dashboard.

§pull_request: Option<Box<PullRequest>>

The favorited pull request.

§release: Option<Box<Release>>

ALPHA The favorited release.

§release_pipeline: Option<ReleasePipeline>

ALPHA The favorited release pipeline.

§url: Option<String>

URL of the favorited entity. Folders return ‘null’ value.

§title: Option<String>

Internal Favorite’s title text (name of the favorite’d object or folder).

§detail: Option<String>

Internal Detail text for favorite’s title (e.g. team’s name for a project).

§color: Option<String>

Internal Returns the color of the favorite’s icon. Unavailable for avatars and views with fixed icons (e.g. cycle).

§icon: Option<String>

Internal Name of the favorite’s icon. Unavailable for standard views, issues, and avatars

Trait Implementations§

Source§

impl Clone for Favorite

Source§

fn clone(&self) -> Favorite

Returns a duplicate 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 Favorite

Source§

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

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

impl Default for Favorite

Source§

fn default() -> Favorite

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

impl<'de> Deserialize<'de> for Favorite

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 GraphQLFields for Favorite

Source§

type FullType = Favorite

The full generated type this implementation validates against.
Source§

fn selection() -> String

Return the GraphQL field selection string for this type. Read more
Source§

impl Serialize for Favorite

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

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> 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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
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 = 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>,

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

Source§

impl<T> FieldCompatible<T> for T