iota_types/timelock/label.rs
1// Copyright (c) 2024 IOTA Stiftung
2// Modifications Copyright (c) 2024 IOTA Stiftung
3// SPDX-License-Identifier: Apache-2.0
4
5use move_core_types::language_storage::StructTag;
6
7#[cfg(test)]
8#[path = "../unit_tests/timelock/label_tests.rs"]
9mod label_tests;
10
11/// Get the string label representation.
12pub fn label_struct_tag_to_string(label_tag: StructTag) -> String {
13 let with_prefix = false;
14
15 label_tag.to_canonical_string(with_prefix)
16}