Struct rtdlib::types::CleanFileName [−][src]
pub struct CleanFileName { /* fields omitted */ }
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
Implementations
Trait Implementations
Performs the conversion.
Returns the “default value” for a type. Read more
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
Auto Trait Implementations
impl RefUnwindSafe for CleanFileName
impl Send for CleanFileName
impl Sync for CleanFileName
impl Unpin for CleanFileName
impl UnwindSafe for CleanFileName
Blanket Implementations
Mutably borrows from an owned value. Read more