qubit_metadata/metadata_result.rs
1/*******************************************************************************
2 *
3 * Copyright (c) 2025 - 2026 Haixing Hu.
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 *
7 * Licensed under the Apache License, Version 2.0.
8 *
9 ******************************************************************************/
10//! [`MetadataResult`] — result alias for explicit `Metadata` operations.
11
12use crate::metadata_error::MetadataError;
13use crate::metadata_validation_error::MetadataValidationError;
14
15/// Result type used by explicit `Metadata` operations that report failure
16/// reasons instead of collapsing them into `None`.
17pub type MetadataResult<T> = Result<T, MetadataError>;
18
19/// Result type used by schema-level validation APIs that can report multiple
20/// independent issues from one validation pass.
21pub type MetadataValidationResult<T> = Result<T, MetadataValidationError>;