pub struct FilesConfig { /* private fields */ }Implementations§
Source§impl FilesConfig
impl FilesConfig
pub fn init() -> Result<()>
pub fn get() -> Result<&'static Self>
pub fn get_optional() -> Option<&'static Self>
pub fn from_profile() -> Result<Self>
pub const fn upload(&self) -> &FileUploadConfig
pub fn validate(&self) -> Result<()>
pub fn validate_storage_structure(&self) -> Vec<String>
pub fn storage(&self) -> &Path
pub fn generated_images(&self) -> PathBuf
pub fn content_images(&self, source: &str) -> PathBuf
pub fn images(&self) -> PathBuf
pub fn files(&self) -> PathBuf
pub fn audio(&self) -> PathBuf
pub fn video(&self) -> PathBuf
pub fn documents(&self) -> PathBuf
pub fn uploads(&self) -> PathBuf
pub fn url_prefix(&self) -> &str
pub fn public_url(&self, relative_path: &str) -> String
pub fn image_url(&self, relative_to_images: &str) -> String
pub fn generated_image_url(&self, filename: &str) -> String
pub fn content_image_url(&self, source: &str, filename: &str) -> String
pub fn file_url(&self, relative_to_files: &str) -> String
pub fn audio_url(&self, filename: &str) -> String
pub fn video_url(&self, filename: &str) -> String
pub fn document_url(&self, filename: &str) -> String
pub fn upload_url(&self, filename: &str) -> String
Trait Implementations§
Source§impl Clone for FilesConfig
impl Clone for FilesConfig
Source§fn clone(&self) -> FilesConfig
fn clone(&self) -> FilesConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FilesConfig
impl RefUnwindSafe for FilesConfig
impl Send for FilesConfig
impl Sync for FilesConfig
impl Unpin for FilesConfig
impl UnwindSafe for FilesConfig
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
Mutably borrows from an owned value. Read more
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> 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 more