Struct rustypaste_cli::config::PasteConfig
source · pub struct PasteConfig {
pub oneshot: Option<bool>,
pub expire: Option<String>,
pub filename: Option<String>,
}Expand description
Paste configuration.
Fields§
§oneshot: Option<bool>Whether if the file will disappear after being viewed once.
expire: Option<String>Expiration time for the link.
filename: Option<String>Filename.
Trait Implementations§
source§impl Clone for PasteConfig
impl Clone for PasteConfig
source§fn clone(&self) -> PasteConfig
fn clone(&self) -> PasteConfig
Returns a copy 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 PasteConfig
impl Debug for PasteConfig
source§impl Default for PasteConfig
impl Default for PasteConfig
source§fn default() -> PasteConfig
fn default() -> PasteConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PasteConfig
impl<'de> Deserialize<'de> for PasteConfig
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 PasteConfig
impl RefUnwindSafe for PasteConfig
impl Send for PasteConfig
impl Sync for PasteConfig
impl Unpin for PasteConfig
impl UnwindSafe for PasteConfig
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