cargo fmt
This commit is contained in:
parent
97ee0a9703
commit
3f81fd5e89
@ -43,7 +43,11 @@ pub async fn insert_json_vec(db: &DatabaseConnection) -> Result<(), DbErr> {
|
|||||||
pub async fn insert_json_vec_derive(db: &DatabaseConnection) -> Result<(), DbErr> {
|
pub async fn insert_json_vec_derive(db: &DatabaseConnection) -> Result<(), DbErr> {
|
||||||
let json_vec = json_vec_derive::Model {
|
let json_vec = json_vec_derive::Model {
|
||||||
id: 2,
|
id: 2,
|
||||||
str_vec: json_vec_derive::StringVec(vec!["4".to_string(), "5".to_string(), "6".to_string()]),
|
str_vec: json_vec_derive::StringVec(vec![
|
||||||
|
"4".to_string(),
|
||||||
|
"5".to_string(),
|
||||||
|
"6".to_string(),
|
||||||
|
]),
|
||||||
};
|
};
|
||||||
|
|
||||||
let result = json_vec.clone().into_active_model().insert(db).await?;
|
let result = json_vec.clone().into_active_model().insert(db).await?;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user