pub struct CleanFileName {
pub file_name: String,
}
Expand description
Removes potentially dangerous characters from the name of a file. The encoding of the file name is supposed to be UTF-8. Returns an empty string on failure. This is an offline method. Can be called before authorization. Can be called synchronously
Fields§
§file_name: String
File name or path to the file
Trait Implementations§
Source§impl Clone for CleanFileName
impl Clone for CleanFileName
Source§fn clone(&self) -> CleanFileName
fn clone(&self) -> CleanFileName
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 moreSource§impl Debug for CleanFileName
impl Debug for CleanFileName
Source§impl<'de> Deserialize<'de> for CleanFileName
impl<'de> Deserialize<'de> for CleanFileName
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Method for CleanFileName
impl Method for CleanFileName
Auto Trait Implementations§
impl Freeze for CleanFileName
impl RefUnwindSafe for CleanFileName
impl Send for CleanFileName
impl Sync for CleanFileName
impl Unpin for CleanFileName
impl UnwindSafe for CleanFileName
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