1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-23 05:49:22 +00:00
comunicapiv3/src/api_data/res_change_group_logo.rs

22 lines
519 B
Rust
Raw Normal View History

2020-06-26 08:35:54 +00:00
//! # Change group logo result
//!
//! @author Pierre Hubert
use serde::Serialize;
use crate::utils::user_data_utils::user_data_url;
#[derive(Serialize)]
pub struct ResChangeGroupLogo {
success: String,
url: String,
}
impl ResChangeGroupLogo {
/// Construct a new instance of this structure
pub fn new(path: &str) -> ResChangeGroupLogo {
ResChangeGroupLogo {
success: "Group logo has been successfully updated!".to_string(),
url: user_data_url(path),
}
}
}