pub trait ForgeKind: Send + Sync {
// Required methods
fn id(&self) -> &str;
fn name(&self) -> &str;
fn client(&self, http: Client, account: &Credentials) -> Box<dyn Forge>;
// Provided method
fn default_url(&self) -> Option<&str> { ... }
}Expand description
A kind of code host a plugin serves (contributes.forges).
Required Methods§
Provided Methods§
Sourcefn default_url(&self) -> Option<&str>
fn default_url(&self) -> Option<&str>
Its public instance (https://github.com), the account’s when the call names none.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".