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
16use crate::operations::Contract;
17use crate::plugin::Grant;
18
19/* === Constants === */
20
21/* === Macros === */
22
23/* === Type Aliases === */
24
25/* === Structs === */
26
27// A Live Provider Contract. Invocation Still Performs Request-Specific Authorization.
28#[derive(Clone, Debug, PartialEq, serde::Serialize, serde::Deserialize)]
29pub struct DiscoveredOperation {
30    pub owner: crate::Identifier,
31    pub generation: u64,
32    pub contract: Contract,
33    pub grants: Vec<Grant>,
34    pub conditional_access: bool,
35    pub grpc_available: bool,
36}
37
38/* === Enums === */
39
40/* === Traits === */
41
42/* === Implementations === */
43
44/* === Public Functions === */
45
46/* === Private Functions === */
47
48/* === Tests === */