Skip to main content

harmos_domain/model/operations/
discovery.rs

1/* ***
2 *
3 * Harmos
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 *
7 * ***
8 */
9
10/* === Modules === */
11
12/* === Re-Exports === */
13
14/* === Imports === */
15
16// Standard Library Imports
17
18// Third Party Imports
19
20// Local Imports
21use crate::operations::Contract;
22use crate::plugin::Grant;
23
24/* === Constants === */
25
26/* === Macros === */
27
28/* === Type Aliases === */
29
30/* === Structs === */
31
32// A Live Provider Contract. Invocation Still Performs Request-Specific Authorization.
33#[derive(Clone, Debug, PartialEq, serde::Serialize, serde::Deserialize)]
34pub struct DiscoveredOperation {
35    pub owner: crate::Identifier,
36    pub generation: u64,
37    pub contract: Contract,
38    pub grants: Vec<Grant>,
39    pub conditional_access: bool,
40    pub grpc_available: bool,
41}
42
43/* === Enums === */
44
45/* === Traits === */
46
47/* === Implementations === */
48
49/* === Public Functions === */
50
51/* === Private Functions === */
52
53/* === Tests === */