Function update_resource_pricing

Source
pub async fn update_resource_pricing(
    pool: &Pool<MySql>,
    id: i64,
    unit_price: Option<f64>,
    effective_to: Option<DateTime<Utc>>,
    volume_discount_tiers: Option<&str>,
) -> Result<ResourcePricing>
Expand description

Updates an existing resource pricing entry in the database.