pub struct PartialStorageConfig {
pub data_directory: Option<PathBuf>,
pub cache_directory: Option<PathBuf>,
}Fields§
§data_directory: Option<PathBuf>§cache_directory: Option<PathBuf>Implementations§
Source§impl PartialStorageConfig
impl PartialStorageConfig
pub fn default(app_name: &'static str) -> PartialStorageConfig
Trait Implementations§
Source§impl Clone for PartialStorageConfig
impl Clone for PartialStorageConfig
Source§fn clone(&self) -> PartialStorageConfig
fn clone(&self) -> PartialStorageConfig
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 PartialStorageConfig
impl Debug for PartialStorageConfig
Source§impl<'de> Deserialize<'de> for PartialStorageConfig
impl<'de> Deserialize<'de> for PartialStorageConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PartialStorageConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PartialStorageConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Emptiable for PartialStorageConfig
impl Emptiable for PartialStorageConfig
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 Mergeable for PartialStorageConfig
impl Mergeable for PartialStorageConfig
fn merge(&mut self, other: PartialStorageConfig)
Source§impl PartialEq for PartialStorageConfig
impl PartialEq for PartialStorageConfig
Source§impl Serialize for PartialStorageConfig
impl Serialize for PartialStorageConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PartialStorageConfig
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 PartialStorageConfig
impl RefUnwindSafe for PartialStorageConfig
impl Send for PartialStorageConfig
impl Sync for PartialStorageConfig
impl Unpin for PartialStorageConfig
impl UnsafeUnpin for PartialStorageConfig
impl UnwindSafe for PartialStorageConfig
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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