mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-11-23 05:49:22 +00:00
22 lines
519 B
Rust
22 lines
519 B
Rust
|
//! # 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),
|
||
|
}
|
||
|
}
|
||
|
}
|