StoreSpec

Trait StoreSpec 

Source
pub trait StoreSpec:
    Sized
    + Default
    + Debug
    + Clone {
    type K8Spec: Spec;
    type Status: Sized + Clone + Default + Debug;
    type Key: Ord + Clone + Debug + ToString;
    type Owner: StoreSpec;

    const LABEL: &'static str;

    // Required method
    fn convert_from_k8(
        k8_obj: K8Obj<Self::K8Spec>,
    ) -> Result<Option<MetaItem<Self>>, IoError>;
}

Required Associated Constants§

Source

const LABEL: &'static str

Required Associated Types§

Required Methods§

Source

fn convert_from_k8( k8_obj: K8Obj<Self::K8Spec>, ) -> Result<Option<MetaItem<Self>>, IoError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§