pub struct Katetime {
pub show_date: bool,
pub show_time: bool,
pub url_safe: bool,
}
Fields§
§show_date: bool
§show_time: bool
§url_safe: bool
Implementations§
source§impl Katetime
impl Katetime
pub fn now_date_human() -> String
pub fn now_time_human() -> String
pub fn now_date_time_human() -> String
pub fn now_date() -> String
pub fn now_time() -> String
pub fn now_date_time() -> String
pub fn generate_now(&self) -> String
pub fn generate(&self, dt: &DateTime<Local>) -> String
Trait Implementations§
source§impl PartialEq<Katetime> for Katetime
impl PartialEq<Katetime> for Katetime
impl Copy for Katetime
impl Eq for Katetime
impl StructuralEq for Katetime
impl StructuralPartialEq for Katetime
Auto Trait Implementations§
impl RefUnwindSafe for Katetime
impl Send for Katetime
impl Sync for Katetime
impl Unpin for Katetime
impl UnwindSafe for Katetime
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