pub struct SourceItem {
pub id: String,
pub title: String,
pub body: String,
pub url: Option<String>,
pub labels: Vec<String>,
pub author: Option<String>,
pub updated: String,
pub code: Option<String>,
pub code_tag: Option<String>,
pub event: Option<String>,
}Expand description
One unit of work found at a source.
Fields§
§id: StringThe provider-local identity, stable across polls (for example owner/repo#12).
title: StringThe item title as written at the source. Untrusted text.
body: StringThe item description as written at the source. Untrusted text.
url: Option<String>A link to the item.
labels: Vec<String>Labels or tags currently on the item.
The author’s name at the source.
updated: StringWhen the source last changed the item, as the provider spells it (ISO 8601).
code: Option<String>The item’s short code at the tracker, as a person writes it: AI6-64, 63. It goes
into the Mission ID, made safe there; None uses the item’s id instead.
code_tag: Option<String>What names the tracker for a code that does not name it itself (gh for GitHub’s
63); None for one that does (Jira’s AI6-64). The Station replaces it with the
instance’s name when the provider has several instances in the Operation.
event: Option<String>The event the item reports, in the provider’s words (check_failed), when it is one.
An item that reports an event an authorized Sleeper waits for fires that Sleeper and
is not a Report of its own. Set only by the provider, never from the item’s text.
Trait Implementations§
Source§impl Clone for SourceItem
impl Clone for SourceItem
Source§impl Debug for SourceItem
impl Debug for SourceItem
Source§impl<'de> Deserialize<'de> for SourceItem
impl<'de> Deserialize<'de> for SourceItem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for SourceItem
Source§impl FromValue for SourceItem
impl FromValue for SourceItem
Source§const KINDS: Kinds = ::guatiao::Kinds::MAP
const KINDS: Kinds = ::guatiao::Kinds::MAP
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.