Skip to main content

Create

Trait Create 

Source
pub trait Create {
    // Provided methods
    fn create(_options: &Options) -> ApiResult<Self>
       where Self: Sized { ... }
    fn register(self) -> ApiResult<Self>
       where Self: Sized { ... }
}
Expand description

Trait for adding creation and registration functionality (e.g., runners, issues, merge requests, etc.)

Provided Methods§

Source

fn create(_options: &Options) -> ApiResult<Self>
where Self: Sized,

Create a new instance of the struct with default values

Source

fn register(self) -> ApiResult<Self>
where Self: Sized,

Register a new instance of the struct with specified values

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§