trello-to-deck/src/conversion.rs

16 lines
461 B
Rust
Raw Normal View History

//
use crate::nextcloud::model::{NextcloudCardDescription, NextcloudCardTitle};
use crate::trello::model::card::{TrelloCardDescription, TrelloCardName};
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())
}
}