Skip to main content

Github

Struct Github 

Source
pub struct Github { /* private fields */ }
Expand description

GitHub issues as an AI6 Source and Tracker.

Implementations§

Source§

impl Github

Source

pub fn new(settings: Settings) -> Result<Self, String>

Builds the provider from the instance’s settings.

§Errors

Returns a message for an unknown key, a malformed repository name or an insecure API address.

Trait Implementations§

Source§

impl Debug for Github

Source§

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

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

impl ProviderDecl for Github

Source§

const KINDS: &'static [&'static str]

The name of every kind this provider serves, so a library can declare them at compile time.
Source§

fn provider(host: Host, alloc: Alloc) -> Result<ProviderParts, ValueError>

Builds this provider’s descriptor, its tables and its configuration schema, once. host is what the library was loaded by; alloc is what the schema is built through.
Source§

impl Source for Github

Source§

fn issue_templates(&self) -> Result<Vec<String>, ProviderError>

The text of the project’s issue templates, read through the tracker: a hidden comment an item carries from one of them is the template’s own, and vetting does not hold it. Empty when the provider has no templates or the project has none.
Source§

fn poll(&self, request: SourcePoll) -> Result<SourceBatch, ProviderError>

Returns the items that changed since request.cursor and match the filters the provider was configured with. Blocks for the duration of the network exchange.
Source§

fn board_url(&self) -> Result<Option<String>, ProviderError>

The page where people read this instance’s issues as a board, from its own settings and with no request to the tracker; None when the provider names none.
Source§

fn facts(&self) -> Result<SourceFacts, ProviderError>

What this instance’s settings say of its web page, intake labels, hosts and credential variables, with no request to the tracker. The default says nothing.
Source§

impl Tracker for Github

Source§

fn capabilities( &self, item: Option<String>, ) -> Result<TrackerCapabilities, ProviderError>

Returns what the instance can do; item adds the answers that depend on one issue.
Source§

fn issue(&self, item: String) -> Result<TrackerIssue, ProviderError>

Reads one issue.
Source§

fn replies(&self, request: ReplyPoll) -> Result<ReplyBatch, ProviderError>

Lists the comments made after request.since on the issues it names.
Source§

fn pull_for_branch( &self, branch: String, ) -> Result<Option<String>, ProviderError>

The open pull request whose head is branch in this instance’s repository, as its item ID; None when there is none or the instance has no pull requests.
Source§

fn post(&self, post: TrackerPost) -> Result<PostedComment, ProviderError>

Posts a comment, or edits the one post.edit names.
Source§

fn update(&self, update: TrackerUpdate) -> Result<(), ProviderError>

Changes labels, workflow state or assignees.
Source§

fn create(&self, spec: IssueSpec) -> Result<TrackerIssue, ProviderError>

Creates an issue and returns it, with its parent when one was attached.
Links two issues, or an issue and an address elsewhere.
Source§

impl TryFrom<Settings> for Github

Source§

type Error = ProviderError

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

fn try_from(settings: Settings) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

§

impl !Freeze for Github

§

impl !RefUnwindSafe for Github

§

impl !UnwindSafe for Github

§

impl Send for Github

§

impl Sync for Github

§

impl Unpin for Github

§

impl UnsafeUnpin for Github

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
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

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
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

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.

§

impl<T> IntoMaybeUndefined<T> for T

§

fn into_maybe_undefined(self) -> MaybeUndefined<T>

Converts this value into a three-state builder argument.
§

impl<T> IntoOption<T> for T

§

fn into_option(self) -> Option<T>

Converts this value into an optional builder argument.
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

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
§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more