pub fn new_with_metadata(
        name: &str,
        backend: Box<dyn RepositoryBackend + Sync + Send>,
        metadata: RepositoryMetadata,
    ) -> Self {
        Self {
            name: name.to_string(),
            id: RepositoryId::new(),
            backend,
            metadata,
            drop_handlers: Mutex::new(Vec::new()),
        }
    }
/// This should only be used in tests.
This should only be used in tests.
This should only be used in tests .
pub fn new_with_metadata(
        name: &str,
        backend: Box<dyn RepositoryBackend + Sync + Send>,
        metadata: RepositoryMetadata,
    ) -> Self {
        Self {
            name: name.to_string(),
            id: RepositoryId::new(),
            backend,
            metadata,
            drop_handlers: Mutex::new(Vec::new()),
        }
    }
pub fn new_with_metadata ( name : & str , backend : Box < dyn RepositoryBackend + Sync + Send > , metadata : RepositoryMetadata , ) -> Self { Self { name : name . to_string ( ) , id : RepositoryId :: new ( ) , backend , metadata , drop_handlers : Mutex :: new ( Vec :: new ( ) ) , } }
This should only be used in tests.
This should only be used in tests .
name
&str
backend
Box<dyn RepositoryBackend + Sync + Send>
metadata
RepositoryMetadata
name
&str
backend
Box<dyn RepositoryBackend + Sync + Send>
metadata
RepositoryMetadata