[][src]Struct rhyoea::instance::application::Application

pub struct Application { /* fields omitted */ }

The Application type. See the module level documentation for more

Methods

impl Application[src]

pub fn new(
    application_name: String,
    application_version: Version,
    engine: Engine
) -> Result<Self, ApplicationError>
[src]

Create a new Application.

Example

use rhyoea::instance::{application::Application, application::Engine, version::Version};
use rhyoea::result::InstanceError;

let application_version = Version::new(1, 0, 0);

let api_version = Version::new(1, 1, 82);
let engine = Engine::default();

let application = Application::new(
    "qux".to_string(),
    application_version,
    engine
)?;

pub fn default_with_engine(engine: Engine) -> Result<Self, ApplicationError>[src]

Returns the "default value" with a custom Engine

Example

use rhyoea::instance::{application::Application, application::Engine, version::Version};
use rhyoea::result::InstanceError;

let application_version = Version::new(1, 0, 0);

let api_version = Version::new(1, 1, 82);
let engine = Engine::default();

let application = Application::new(
    "qux".to_string(),
    application_version,
    engine
)?;

Trait Implementations

impl Clone for Application[src]

impl Default for Application[src]

impl Debug for Application[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]