1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use async_trait::async_trait;

use crate::{errors::sdk::SDKError, resources::tasks::task::Task};

use super::label::Label;

#[async_trait]
pub trait LabelRelations {
    async fn owner(&self) -> Result<Label, SDKError>;
    async fn tasks(&self) -> Result<Vec<Task>, SDKError>;
}

#[async_trait]
impl LabelRelations for Label {
    async fn owner(&self) -> Result<Label, SDKError> {
        todo!()
    }

    async fn tasks(&self) -> Result<Vec<Task>, SDKError> {
        todo!()
    }
}