pub struct RandomURLConfig {
pub enabled: Option<bool>,
pub words: Option<u8>,
pub separator: Option<String>,
pub length: Option<usize>,
pub type_: RandomURLType,
pub suffix_mode: Option<bool>,
pub no_extension: Option<bool>,
}Expand description
Random URL configuration.
Fields§
§enabled: Option<bool>👎Deprecated:
disable by commenting out [paste].random_url
Use a random name instead of original file names.
words: Option<u8>Count of words that pet name will include.
separator: Option<String>Separator between the words.
length: Option<usize>Length of the random string to generate.
type_: RandomURLTypeType of the random URL.
suffix_mode: Option<bool>Append a random string to the original filename.
no_extension: Option<bool>Do not add or keep an extension.
Implementations§
Trait Implementations§
Source§impl Clone for RandomURLConfig
impl Clone for RandomURLConfig
Source§fn clone(&self) -> RandomURLConfig
fn clone(&self) -> RandomURLConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RandomURLConfig
impl Debug for RandomURLConfig
Source§impl Default for RandomURLConfig
impl Default for RandomURLConfig
Source§fn default() -> RandomURLConfig
fn default() -> RandomURLConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RandomURLConfig
impl<'de> Deserialize<'de> for RandomURLConfig
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
Auto Trait Implementations§
impl Freeze for RandomURLConfig
impl RefUnwindSafe for RandomURLConfig
impl Send for RandomURLConfig
impl Sync for RandomURLConfig
impl Unpin for RandomURLConfig
impl UnsafeUnpin for RandomURLConfig
impl UnwindSafe for RandomURLConfig
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