pub trait GrantTrait {
    // Required methods
    fn get_funded_item(&self) -> &[FundedItemProperty];
    fn take_funded_item(&mut self) -> Vec<FundedItemProperty>;
    fn get_funder(&self) -> &[FunderProperty];
    fn take_funder(&mut self) -> Vec<FunderProperty>;
    fn get_sponsor(&self) -> &[SponsorProperty];
    fn take_sponsor(&mut self) -> Vec<SponsorProperty>;
}
Expand description

This trait is for properties from https://schema.org/Grant.

Required Methods§

source

fn get_funded_item(&self) -> &[FundedItemProperty]

Get https://schema.org/fundedItem from Self as borrowed slice.

source

fn take_funded_item(&mut self) -> Vec<FundedItemProperty>

Take https://schema.org/fundedItem from Self as owned vector.

source

fn get_funder(&self) -> &[FunderProperty]

Get https://schema.org/funder from Self as borrowed slice.

source

fn take_funder(&mut self) -> Vec<FunderProperty>

Take https://schema.org/funder from Self as owned vector.

source

fn get_sponsor(&self) -> &[SponsorProperty]

Get https://schema.org/sponsor from Self as borrowed slice.

source

fn take_sponsor(&mut self) -> Vec<SponsorProperty>

Take https://schema.org/sponsor from Self as owned vector.

Implementors§