Struct salvo::fs::NamedFileBuilder [−][src]
pub struct NamedFileBuilder { /* fields omitted */ }
Expand description
Builder for build NamedFile
.
Implementations
pub fn with_attached_filename<T>(self, attached_filename: T) -> NamedFileBuilder where
T: Into<String>,
pub fn with_attached_filename<T>(self, attached_filename: T) -> NamedFileBuilder where
T: Into<String>,
Set attached filename and returns Self.
pub fn with_disposition_type<T>(self, disposition_type: T) -> NamedFileBuilder where
T: Into<String>,
pub fn with_disposition_type<T>(self, disposition_type: T) -> NamedFileBuilder where
T: Into<String>,
Set disposition encoding and returns Self.
Set content type and returns Self.
pub fn with_content_encoding<T>(self, content_encoding: T) -> NamedFileBuilder where
T: Into<String>,
pub fn with_content_encoding<T>(self, content_encoding: T) -> NamedFileBuilder where
T: Into<String>,
Set content encoding and returns Self.
Set buffer size and returns Self.
Specifies whether to use ETag or not.
Default is true.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for NamedFileBuilder
impl Send for NamedFileBuilder
impl Sync for NamedFileBuilder
impl Unpin for NamedFileBuilder
impl UnwindSafe for NamedFileBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more