pub fn add_user_to_bucket(new_bucket_user: NewBucketUser, conn: &PgConnection) -> BackendResult<()> {
        use crate::schema::junction_bucket_users;

        diesel::insert_into(junction_bucket_users::table)
            .values(&new_bucket_user)
            .execute(conn)
            .map_err(handle_err::<Bucket>)?;
        Ok(())
    }
/// If a user joins a bucket, then they will be added to the bucket.
If a user joins a bucket, then they will be added to the bucket.
If a user joins a bucket then they will be added to the bucket .
pub fn add_user_to_bucket(new_bucket_user: NewBucketUser, conn: &PgConnection) -> BackendResult<()> {
        use crate::schema::junction_bucket_users;
        diesel::insert_into(junction_bucket_users::table)
            .values(&new_bucket_user)
            .execute(conn)
            .map_err(handle_err::<Bucket>)?;
        Ok(())
    }
pub fn add_user_to_bucket ( new_bucket_user : NewBucketUser , conn : & PgConnection ) -> BackendResult < ( ) > { use crate :: schema :: junction_bucket_users ; diesel :: insert_into ( junction_bucket_users :: table ) . values ( & new_bucket_user ) . execute ( conn ) . map_err ( handle_err :: < Bucket > ) ? ; Ok ( ( ) ) }
If a user joins a bucket, then they will be added to the bucket.
If a user joins a bucket then they will be added to the bucket .
new_bucket_user
NewBucketUser
conn
&PgConnection
new_bucket_user
NewBucketUser
conn
&PgConnection