[][src]Struct rocl::models::Service

pub struct Service {
    pub name: String,
    pub id: String,
    pub description: String,
    pub tags: Option<Vec<String>>,
    pub requires: Option<Requires>,
    pub bindable: bool,
    pub metadata: Option<Value>,
    pub dashboard_client: Option<DashboardClient>,
    pub plan_updateable: Option<bool>,
    pub plans: Vec<Plan>,
}

Fields

name: Stringid: Stringdescription: Stringtags: Option<Vec<String>>requires: Option<Requires>bindable: boolmetadata: Option<Value>

See Service Metadata Conventions for more details.

dashboard_client: Option<DashboardClient>plan_updateable: Option<bool>plans: Vec<Plan>

Methods

impl Service[src]

pub fn new(
    name: String,
    id: String,
    description: String,
    bindable: bool,
    plans: Vec<Plan>
) -> Service
[src]

Trait Implementations

impl Debug for Service[src]

impl<'de> Deserialize<'de> for Service[src]

impl PartialEq<Service> for Service[src]

impl Serialize for Service[src]

impl StructuralPartialEq for Service[src]

Auto Trait Implementations

impl RefUnwindSafe for Service

impl Send for Service

impl Sync for Service

impl Unpin for Service

impl UnwindSafe for Service

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

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

type Error = Infallible

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, U> TryInto<U> for T where
    U: TryFrom<T>, 

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