Trait GetContentSourceContent

Source
pub trait GetContentSourceContent:
    Send
    + Sync
    + NonLocalValue
    + ValueDebug {
    // Required method
    fn get(
        self: Vc<Self>,
        path: RcStr,
        data: Value<ContentSourceData>,
    ) -> Vc<ContentSourceContent>
       where Self: Sized;

    // Provided method
    fn vary(self: Vc<Self>) -> Vc<ContentSourceDataVary>
       where Self: Sized { ... }
}
Expand description

A functor to receive the actual content of a content source result.

Required Methods§

Source

fn get( self: Vc<Self>, path: RcStr, data: Value<ContentSourceData>, ) -> Vc<ContentSourceContent>
where Self: Sized,

Get the content

Provided Methods§

Source

fn vary(self: Vc<Self>) -> Vc<ContentSourceDataVary>
where Self: Sized,

Specifies data requirements for the get function. Restricting data passed allows to cache the get method.

Trait Implementations§

Implementors§