pub struct Plugin;Expand description
Factory for GitHubProjectsSource.
Implementations§
Source§impl Plugin
impl Plugin
Sourcepub fn build_recording_into(
&self,
name: &SourceName,
config: &Value,
secrets: &dyn SecretResolver,
ledger: Arc<Accounting>,
) -> Result<Box<dyn TaskSource>, SourceError>
pub fn build_recording_into( &self, name: &SourceName, config: &Value, secrets: &dyn SecretResolver, ledger: Arc<Accounting>, ) -> Result<Box<dyn TaskSource>, SourceError>
Build a source recording every request it sends into an accounting the caller holds.
SourcePlugin::build is this with an accounting of its own, which is what the
registry gets. This is for a caller that is also calling GitHub itself and wants one
session total rather than two — see accounting and
GitHubProjectsSource::recording_into.
§Errors
Exactly SourcePlugin::build’s, with the same source name in front of each:
SourceError::Config for configuration this plugin cannot use and
SourceError::Auth for a credential it cannot find.
Trait Implementations§
impl Copy for Plugin
Source§impl SourcePlugin for Plugin
impl SourcePlugin for Plugin
Source§fn config_schema(&self) -> Schema
fn config_schema(&self) -> Schema
The JSON Schema for this plugin’s own
config: block.Source§fn build(
&self,
name: &SourceName,
config: &Value,
secrets: &dyn SecretResolver,
) -> Result<Box<dyn TaskSource>, SourceError>
fn build( &self, name: &SourceName, config: &Value, secrets: &dyn SecretResolver, ) -> Result<Box<dyn TaskSource>, SourceError>
Build a live source from one configuration block. Read more
Auto Trait Implementations§
impl Freeze for Plugin
impl RefUnwindSafe for Plugin
impl Send for Plugin
impl Sync for Plugin
impl Unpin for Plugin
impl UnsafeUnpin for Plugin
impl UnwindSafe for Plugin
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more