Skip to main content

Record

Enum Record 

Source
pub enum Record {
    ProjectBoard {
        board: String,
        number: i64,
        title: String,
        owner: String,
        url: String,
        closed: bool,
    },
    ProjectField {
        board: String,
        field: String,
        name: String,
        kind: String,
        options: Vec<ProjectOption>,
    },
    ProjectItem {
        board: String,
        item: String,
        kind: String,
        title: String,
        url: Option<String>,
        repository: Option<String>,
        number: Option<i64>,
        state: Option<String>,
        archived: bool,
        body: String,
        fields: Vec<ProjectValue>,
    },
    ProjectItemRemoved {
        board: String,
        item: String,
    },
    BoardReference {
        project: String,
        board: String,
    },
    Issue {
        repo: String,
        number: i64,
        title: String,
        state: String,
        url: String,
        updated_at: String,
    },
    SyncScope {
        scope: String,
        outcome: String,
        error: Option<String>,
    },
    SyncProblem {
        problem: String,
    },
    SyncSummary {
        changed: usize,
        unchanged: usize,
        failed: usize,
        no_token: bool,
        problems: usize,
    },
    Status {
        mirror: String,
        token: Option<String>,
        scopes: usize,
        failing: usize,
        never_synced: usize,
    },
    Message {
        level: String,
        text: String,
    },
    Failure {
        message: String,
    },
}

Variants§

§

ProjectBoard

One Projects board. board is its node id, which every later call may name it by; number is what a person calls it.

Fields

§board: String
§number: i64
§title: String
§owner: String
§closed: bool
§

ProjectField

One field of a board, with the options of a single-select.

Fields

§board: String
§field: String
§name: String
§kind: String
§

ProjectItem

One card, as GitHub last returned it. fields is by field NAME, in the board’s field order, and carries only what the card has a value for.

Fields

§board: String
§item: String
§kind: String

ISSUE | PULL_REQUEST | DRAFT_ISSUE | REDACTED.

§title: String
§repository: Option<String>
§number: Option<i64>
§archived: bool
§body: String

The description, as markdown. Empty is a fact.

§

ProjectItemRemoved

A card was taken off a board.

Fields

§board: String
§item: String
§

BoardReference

A board one project references.

Fields

§project: String
§board: String
§

Issue

One issue, as the mirror holds it.

Fields

§repo: String
§number: i64
§title: String
§state: String
§updated_at: String
§

SyncScope

What a sync did with one scope.

Fields

§scope: String
§outcome: String

changed | unchanged | failed.

§

SyncProblem

Something about what to mirror that could not be found out.

Fields

§problem: String
§

SyncSummary

One whole sync.

Fields

§changed: usize
§unchanged: usize
§failed: usize
§no_token: bool
§problems: usize
§

Status

Where the token and the mirror are.

Fields

§mirror: String
§scopes: usize
§failing: usize
§never_synced: usize
§

Message

Something said that is not data.

Fields

§level: String
§text: String
§

Failure

Why the command did not do what was asked.

Fields

§message: String

Trait Implementations§

Source§

impl Clone for Record

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 Record

Source§

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

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

impl PartialEq for Record

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 Serialize for Record

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 Record

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