1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
use api::raw::{RawFetch, RawUpdate, Include};
use api::Error;

pub trait _FetchRels: RawFetch {
    fn rels(id: &Self::Id, includes: &[String]) -> Result<(Self::Relationships, Vec<Include>), Error>;
}

pub trait _UpdateRels: RawUpdate {
    fn update_rels(id: &Self::Id, rels: <Self as RawUpdate>::Relationships)
        -> Result<<Self as RawFetch>::Relationships, Error>;
}