Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright (c) 2025, Salesforce, Inc.,
// All rights reserved.
// For full license text, see the LICENSE.txt file

use crate::config::Config;
use crate::container::Container;

/// Trait to define a service.
pub trait Service {
    type Config: Config;

    fn new(config: &Self::Config, container: &Container) -> Self;
}