// use crate::nextcloud::model::NextcloudStackTitle; use crate::{ nextcloud::model::{NextcloudCardDescription, NextcloudCardTitle, NextcloudOrder}, trello::model::{ card::{TrelloCardDescription, TrelloCardName, TrelloCardPosition}, list::{TrelloListName, TrelloListPosition}, }, }; impl From<&TrelloCardName> for NextcloudCardTitle { fn from(value: &TrelloCardName) -> Self { Self::new(value.to_string()) } } impl From<&TrelloCardDescription> for NextcloudCardDescription { fn from(value: &TrelloCardDescription) -> Self { Self::new(value.to_string()) } } impl From<&TrelloListName> for NextcloudStackTitle { fn from(value: &TrelloListName) -> Self { Self::new(value.to_string()) } } impl From<&TrelloListPosition> for NextcloudOrder { fn from(value: &TrelloListPosition) -> Self { Self::new(value.0) } } impl From<&TrelloCardPosition> for NextcloudOrder { fn from(value: &TrelloCardPosition) -> Self { Self::new(value.0) } }