pub struct InfoStoreOptions {
pub info_storage: i32,
pub info_dir: String,
pub info_db_dsn: Option<String>,
pub redis_info_expiration: Option<u64>,
}Fields§
§info_storage: i32/ Type of info storage. / / Info storages are used to store information about uploads. / / This information is used in HEAD requests.
NOTE: Rust default = Files
info_dir: String/ Rustus info directory
/
/ This directory is used to store .info files for file_info_storage.
NOTE: Rust default = “./data”
info_db_dsn: Option<String>/ Connection string for remote info storages.
/
/ This connection string is used for storages which require connection.
/ Examples of such storages are Postgres, MySQL or Redis.
/
/ Value must include all connection details.
redis_info_expiration: Option<u64>redis_info_expiration: Option
Implementations§
Source§impl InfoStoreOptions
impl InfoStoreOptions
Sourcepub fn info_storage(&self) -> AvailableInfoStorages
pub fn info_storage(&self) -> AvailableInfoStorages
Returns the enum value of info_storage, or the default if the field is set to an invalid enum value.
Sourcepub fn set_info_storage(&mut self, value: AvailableInfoStorages)
pub fn set_info_storage(&mut self, value: AvailableInfoStorages)
Sets info_storage to the provided enum value.
Sourcepub fn info_db_dsn(&self) -> &str
pub fn info_db_dsn(&self) -> &str
Returns the value of info_db_dsn, or the default value if info_db_dsn is unset.
Sourcepub fn redis_info_expiration(&self) -> u64
pub fn redis_info_expiration(&self) -> u64
Returns the value of redis_info_expiration, or the default value if redis_info_expiration is unset.
Trait Implementations§
Source§impl Clone for InfoStoreOptions
impl Clone for InfoStoreOptions
Source§fn clone(&self) -> InfoStoreOptions
fn clone(&self) -> InfoStoreOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InfoStoreOptions
impl Debug for InfoStoreOptions
Source§impl Default for InfoStoreOptions
impl Default for InfoStoreOptions
Source§impl<'de> Deserialize<'de> for InfoStoreOptions
impl<'de> Deserialize<'de> for InfoStoreOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Message for InfoStoreOptions
impl Message for InfoStoreOptions
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for InfoStoreOptions
impl PartialEq for InfoStoreOptions
Source§impl Serialize for InfoStoreOptions
impl Serialize for InfoStoreOptions
impl StructuralPartialEq for InfoStoreOptions
Auto Trait Implementations§
impl Freeze for InfoStoreOptions
impl RefUnwindSafe for InfoStoreOptions
impl Send for InfoStoreOptions
impl Sync for InfoStoreOptions
impl Unpin for InfoStoreOptions
impl UnwindSafe for InfoStoreOptions
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request