cardano_sdk/cardano/slot_bound.rs
1// This Source Code Form is subject to the terms of the Mozilla Public
2// License, v. 2.0. If a copy of the MPL was not distributed with this
3// file, You can obtain one at http://mozilla.org/MPL/2.0/.
4//
5
6use pallas_addresses::Slot;
7
8/// A slot boundary to define validity intervals on transactions. The given argument is expressed
9/// in (absolute) slot.
10#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
11pub enum SlotBound {
12 #[default]
13 None,
14 Inclusive(Slot),
15 Exclusive(Slot),
16}