rainbeam::model

Trait CtxAsset

pub trait CtxAsset {
    // Required methods
    fn ref_context(&self) -> &impl Context;
    fn ref_content(&self) -> &String;
    fn ref_asset(&self) -> (AssetType, &String);
}
Expand description

Trait for generic structs which contain a “content” and “context”

Required Methods§

fn ref_context(&self) -> &impl Context

fn ref_content(&self) -> &String

fn ref_asset(&self) -> (AssetType, &String)

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.

Implementations on Foreign Types§

§

impl CtxAsset for (Question, QuestionResponse, usize, usize)

§

fn ref_context(&self) -> &impl Context

§

fn ref_content(&self) -> &String

§

fn ref_asset(&self) -> (AssetType, &String)

Implementors§