Fix doc comment indentation
This commit is contained in:
parent
bcb24c2a97
commit
af604a9ddc
@ -11,16 +11,16 @@ cfg_if! {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Add an album to the database
|
/// Add an album to the database
|
||||||
///
|
///
|
||||||
/// # Arguments
|
/// # Arguments
|
||||||
///
|
///
|
||||||
/// * `album_title` - The name of the artist to add
|
/// * `album_title` - The name of the artist to add
|
||||||
/// * `release_data` - The release date of the album (Optional)
|
/// * `release_data` - The release date of the album (Optional)
|
||||||
/// * `image_path` - The path to the album's image file (Optional)
|
/// * `image_path` - The path to the album's image file (Optional)
|
||||||
///
|
///
|
||||||
/// # Returns
|
/// # Returns
|
||||||
/// * `Result<(), Box<dyn Error>>` - A empty result if successful, or an error
|
/// * `Result<(), Box<dyn Error>>` - A empty result if successful, or an error
|
||||||
///
|
///
|
||||||
#[server(endpoint = "albums/add-album")]
|
#[server(endpoint = "albums/add-album")]
|
||||||
pub async fn add_album(album_title: String, release_date: Option<String>, image_path: Option<String>) -> Result<(), ServerFnError> {
|
pub async fn add_album(album_title: String, release_date: Option<String>, image_path: Option<String>) -> Result<(), ServerFnError> {
|
||||||
use crate::schema::albums::{self};
|
use crate::schema::albums::{self};
|
||||||
|
@ -10,14 +10,14 @@ cfg_if! {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Add an artist to the database
|
/// Add an artist to the database
|
||||||
///
|
///
|
||||||
/// # Arguments
|
/// # Arguments
|
||||||
///
|
///
|
||||||
/// * `artist_name` - The name of the artist to add
|
/// * `artist_name` - The name of the artist to add
|
||||||
///
|
///
|
||||||
/// # Returns
|
/// # Returns
|
||||||
/// * `Result<(), Box<dyn Error>>` - A empty result if successful, or an error
|
/// * `Result<(), Box<dyn Error>>` - A empty result if successful, or an error
|
||||||
///
|
///
|
||||||
#[server(endpoint = "artists/add-artist")]
|
#[server(endpoint = "artists/add-artist")]
|
||||||
pub async fn add_artist(artist_name: String) -> Result<(), ServerFnError> {
|
pub async fn add_artist(artist_name: String) -> Result<(), ServerFnError> {
|
||||||
use crate::schema::artists::dsl::*;
|
use crate::schema::artists::dsl::*;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user