Struct ::exo::vs::DateTimeSettings

Overview

Settings for the reference typ which is used for variables

Methods

Creates a new DateTimeSettings object.

Example

let s = exo::vs::DateTimeSettings::new();
assert!(s is exo::vs::DateTimeSettings);

Clones the DateTimeSettings object and returns a new independet one.

Example

let s0 = exo::vs::DateTimeSettings::new();
let s1 = s0.clone();
assert_eq!(s0, s1);
s1.mode = "date";
assert_ne!(s0, s1);

Protocols

protocol partial_eq
if value == b { }

Allows for partial equality operations to work.

protocol string_debug
println("{:?}", value)

Allows the value to be debug printed.

protocol string_display
println("{}", value)

Allows the value to be display printed.

protocol get mode
let output = value.mode

Get the DateTime mode which is used. Available options are: 'datetime', 'date'

Example

let s = exo::vs::DateTimeSettings::new();
s.mode = "date";
assert_eq!(s.mode, "date");
protocol set mode
value.mode = input

Set the DateTime mode which shuld be used. Available options are: 'datetime', 'date'

Example

let s = exo::vs::DateTimeSettings::new();
s.mode = "date";
assert_eq!(s.mode, "date");