iota_grpc_types/proto/generated/
iota.grpc.v1.types.rs

1// Copyright (c) Mysten Labs, Inc.
2// Modifications Copyright (c) 2025 IOTA Stiftung
3// SPDX-License-Identifier: Apache-2.0
4
5// This file is @generated by prost-build.
6/// 32-byte address type for IOTA account addresses.
7#[non_exhaustive]
8#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
9pub struct Address {
10    #[prost(bytes = "bytes", tag = "1")]
11    pub address: ::prost::bytes::Bytes,
12}
13/// 32-byte identifier for on-chain objects and packages.
14#[non_exhaustive]
15#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
16pub struct ObjectId {
17    #[prost(bytes = "bytes", tag = "1")]
18    pub object_id: ::prost::bytes::Bytes,
19}
20/// Generic 32-byte digest (used for transactions, objects, etc.)
21#[non_exhaustive]
22#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
23pub struct Digest {
24    #[prost(bytes = "bytes", tag = "1")]
25    pub digest: ::prost::bytes::Bytes,
26}
27/// Reference to an object.
28#[non_exhaustive]
29#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
30pub struct ObjectReference {
31    /// The object id of this object.
32    #[prost(message, optional, tag = "1")]
33    pub object_id: ::core::option::Option<ObjectId>,
34    /// The version of this object.
35    #[prost(uint64, optional, tag = "2")]
36    pub version: ::core::option::Option<u64>,
37    /// The digest of this object.
38    #[prost(message, optional, tag = "3")]
39    pub digest: ::core::option::Option<Digest>,
40}
41#[non_exhaustive]
42#[derive(Clone, PartialEq, ::prost::Message)]
43pub struct TypeTagVector {
44    #[prost(message, optional, boxed, tag = "1")]
45    pub inner_type: ::core::option::Option<::prost::alloc::boxed::Box<TypeTag>>,
46}
47#[non_exhaustive]
48#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
49pub struct TypeTagStruct {
50    #[prost(string, tag = "1")]
51    pub struct_tag: ::prost::alloc::string::String,
52}
53#[non_exhaustive]
54#[derive(Clone, PartialEq, ::prost::Message)]
55pub struct TypeTag {
56    #[prost(oneof = "type_tag::TypeTag", tags = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11")]
57    pub type_tag: ::core::option::Option<type_tag::TypeTag>,
58}
59/// Nested message and enum types in `TypeTag`.
60pub mod type_tag {
61    #[non_exhaustive]
62    #[derive(Clone, PartialEq, ::prost::Oneof)]
63    pub enum TypeTag {
64        #[prost(bool, tag = "1")]
65        BoolTag(bool),
66        #[prost(bool, tag = "2")]
67        U8Tag(bool),
68        #[prost(bool, tag = "3")]
69        U16Tag(bool),
70        #[prost(bool, tag = "4")]
71        U32Tag(bool),
72        #[prost(bool, tag = "5")]
73        U64Tag(bool),
74        #[prost(bool, tag = "6")]
75        U128Tag(bool),
76        #[prost(bool, tag = "7")]
77        U256Tag(bool),
78        #[prost(bool, tag = "8")]
79        AddressTag(bool),
80        #[prost(bool, tag = "9")]
81        SignerTag(bool),
82        #[prost(message, tag = "10")]
83        VectorTag(::prost::alloc::boxed::Box<super::TypeTagVector>),
84        #[prost(message, tag = "11")]
85        StructTag(super::TypeTagStruct),
86    }
87}
88#[non_exhaustive]
89#[derive(Clone, PartialEq, ::prost::Message)]
90pub struct TypeTags {
91    #[prost(message, repeated, tag = "1")]
92    pub type_tags: ::prost::alloc::vec::Vec<TypeTag>,
93}