Trait pallet_posts::PostScores[][src]

pub trait PostScores<T: Trait> {
    fn score_post_on_new_share(
        account: T::AccountId,
        original_post: &mut Post<T>
    ) -> DispatchResult;
fn score_root_post_on_new_comment(
        account: T::AccountId,
        root_post: &mut Post<T>
    ) -> DispatchResult; }

Required methods

fn score_post_on_new_share(
    account: T::AccountId,
    original_post: &mut Post<T>
) -> DispatchResult
[src]

fn score_root_post_on_new_comment(
    account: T::AccountId,
    root_post: &mut Post<T>
) -> DispatchResult
[src]

Loading content...

Implementations on Foreign Types

impl<T: Trait> PostScores<T> for ()[src]

Loading content...

Implementors

Loading content...