mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-05 17:58:55 +00:00
trait
This commit is contained in:
1 parent
f832237f13
commit
85dc8a7492
3 files changed
+12
-1
No files matched your search
@@ -1,2 +1,3 @@
|
||||
pub mod queue;
|
||||
pub mod webhook;
|
||||
pub mod webhook;
|
||||
mod traits;
|
||||
@@ -0,0 +1,9 @@
|
||||
|
||||
/// Cost in pennies.
|
||||
pub type UsdCents = u64;
|
||||
|
||||
pub trait FalRequestCostCalculator {
|
||||
|
||||
/// Calculate the cost of the request.
|
||||
fn calculate_cost_in_cents(&self) -> UsdCents;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
mod fal_request_cost_calculator_trait;
|
||||
Reference in new issue
Block a user