Skip to main content

Entry

Struct Entry 

Source
pub struct Entry {
    pub bucket: Bucket,
    pub connection_id: String,
    pub connection: String,
    pub provider: ProviderType,
    pub item: EntryItem,
}
Expand description

One actionable item on the Launchpad, resolved to its bucket + the full domain object.

Fields§

§bucket: Bucket§connection_id: String§connection: String

Display name of the connection (for the “provider · connection” tag).

§provider: ProviderType§item: EntryItem

Implementations§

Source§

impl Entry

Source

pub fn kind(&self) -> EntryKind

Source

pub fn item_id(&self) -> &str

Source

pub fn title(&self) -> &str

Source

pub fn updated_at(&self) -> Option<DateTime<Utc>>

Last activity, for the staleness cue + oldest-first ordering.

Source

pub fn key(connection_id: &str, item_id: &str) -> String

Stable identity of the underlying item, used to dismiss it from the Launchpad once you’ve acted on it (e.g. reviewed the PR) even before the next refetch.

Auto Trait Implementations§

§

impl Freeze for Entry

§

impl RefUnwindSafe for Entry

§

impl Send for Entry

§

impl Sync for Entry

§

impl Unpin for Entry

§

impl UnsafeUnpin for Entry

§

impl UnwindSafe for Entry

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