Struct rust_tdlib::types::CleanFileName
source · [−]pub struct CleanFileName { /* private fields */ }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. Can be called synchronously
Implementations
Trait Implementations
sourceimpl AsRef<CleanFileName> for CleanFileName
impl AsRef<CleanFileName> for CleanFileName
sourcefn as_ref(&self) -> &CleanFileName
fn as_ref(&self) -> &CleanFileName
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for CleanFileName
impl Clone for CleanFileName
sourcefn clone(&self) -> CleanFileName
fn clone(&self) -> CleanFileName
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for CleanFileName
impl Debug for CleanFileName
sourceimpl Default for CleanFileName
impl Default for CleanFileName
sourcefn default() -> CleanFileName
fn default() -> CleanFileName
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for CleanFileName
impl<'de> Deserialize<'de> for CleanFileName
sourcefn 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
sourceimpl Serialize for CleanFileName
impl Serialize for CleanFileName
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more