potree-auth 0.1.0

Authentication and project management for `potree` point clouds.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::path::PathBuf;

use super::super::ports::potree_asset_store::PotreeAssetStoreError;

#[derive(Debug, thiserror::Error)]
pub enum PotreeAssetsServiceError {
    #[error("the asset ({path}) could not be found")]
    AssetNotFound { path: PathBuf },
}

impl From<PotreeAssetStoreError> for PotreeAssetsServiceError {
    fn from(value: PotreeAssetStoreError) -> Self {
        match value {
            PotreeAssetStoreError::AssetNotFound { path }
            | PotreeAssetStoreError::Parsing { path } => Self::AssetNotFound { path },
        }
    }
}