pub struct StorageConfig {
pub data_directory: PathBuf,
pub cache_directory: PathBuf,
}Fields§
§data_directory: PathBuf§cache_directory: PathBufImplementations§
Source§impl StorageConfig
impl StorageConfig
pub fn get_global_data_directory(&self) -> PathBuf
pub fn get_global_root_document_path(&self) -> PathBuf
pub fn get_local_data_directory(&self) -> PathBuf
pub fn get_local_database_path(&self) -> PathBuf
Trait Implementations§
Source§impl AsRef<StorageConfig> for Config
impl AsRef<StorageConfig> for Config
Source§fn as_ref(&self) -> &StorageConfig
fn as_ref(&self) -> &StorageConfig
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for StorageConfig
impl Clone for StorageConfig
Source§fn clone(&self) -> StorageConfig
fn clone(&self) -> StorageConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StorageConfig
impl Debug for StorageConfig
Source§impl From<StorageConfig> for PartialStorageConfig
impl From<StorageConfig> for PartialStorageConfig
Source§fn from(config: StorageConfig) -> PartialStorageConfig
fn from(config: StorageConfig) -> PartialStorageConfig
Converts to this type from the input type.
Source§impl TryFrom<PartialStorageConfig> for StorageConfig
impl TryFrom<PartialStorageConfig> for StorageConfig
Source§type Error = ConfigError
type Error = ConfigError
The type returned in the event of a conversion error.
Source§fn try_from(
value: PartialStorageConfig,
) -> Result<StorageConfig, <StorageConfig as TryFrom<PartialStorageConfig>>::Error>
fn try_from( value: PartialStorageConfig, ) -> Result<StorageConfig, <StorageConfig as TryFrom<PartialStorageConfig>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for StorageConfig
impl RefUnwindSafe for StorageConfig
impl Send for StorageConfig
impl Sync for StorageConfig
impl Unpin for StorageConfig
impl UnsafeUnpin for StorageConfig
impl UnwindSafe for StorageConfig
Blanket Implementations§
Source§impl<T, U> AsyncTryInto<T> for Uwhere
T: AsyncTryFrom<U>,
impl<T, U> AsyncTryInto<T> for Uwhere
T: AsyncTryFrom<U>,
type Error = <T as AsyncTryFrom<U>>::Error
async fn async_try_into(self) -> Result<T, <U as AsyncTryInto<T>>::Error>
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request