feature/knowledge-curation #91
@@ -98,6 +98,7 @@ pub struct FactDetail {
|
|||||||
|
|
||||||
#[derive(Serialize)]
|
#[derive(Serialize)]
|
||||||
pub struct PhotoLinkDetail {
|
pub struct PhotoLinkDetail {
|
||||||
|
pub library_id: i32,
|
||||||
pub file_path: String,
|
pub file_path: String,
|
||||||
pub role: String,
|
pub role: String,
|
||||||
}
|
}
|
||||||
@@ -105,6 +106,7 @@ pub struct PhotoLinkDetail {
|
|||||||
impl From<EntityPhotoLink> for PhotoLinkDetail {
|
impl From<EntityPhotoLink> for PhotoLinkDetail {
|
||||||
fn from(l: EntityPhotoLink) -> Self {
|
fn from(l: EntityPhotoLink) -> Self {
|
||||||
PhotoLinkDetail {
|
PhotoLinkDetail {
|
||||||
|
library_id: l.library_id,
|
||||||
file_path: l.file_path,
|
file_path: l.file_path,
|
||||||
role: l.role,
|
role: l.role,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user