#[repr(i32)]pub enum ProtoOaTrendbarPeriod {
Show 14 variants
M1 = 1,
M2 = 2,
M3 = 3,
M4 = 4,
M5 = 5,
M10 = 6,
M15 = 7,
M30 = 8,
H1 = 9,
H4 = 10,
H12 = 11,
D1 = 12,
W1 = 13,
Mn1 = 14,
}Expand description
- Trendbar period ENUM.
Variants§
M1 = 1
M2 = 2
M3 = 3
M4 = 4
M5 = 5
M10 = 6
M15 = 7
M30 = 8
H1 = 9
H4 = 10
H12 = 11
D1 = 12
W1 = 13
Mn1 = 14
Implementations§
Source§impl ProtoOaTrendbarPeriod
impl ProtoOaTrendbarPeriod
Sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true if value is a variant of ProtoOaTrendbarPeriod.
Sourcepub fn from_i32(value: i32) -> Option<ProtoOaTrendbarPeriod>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<ProtoOaTrendbarPeriod>
Converts an i32 to a ProtoOaTrendbarPeriod, or None if value is not a valid variant.
Source§impl ProtoOaTrendbarPeriod
impl ProtoOaTrendbarPeriod
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for ProtoOaTrendbarPeriod
impl Clone for ProtoOaTrendbarPeriod
Source§fn clone(&self) -> ProtoOaTrendbarPeriod
fn clone(&self) -> ProtoOaTrendbarPeriod
Returns a duplicate 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 ProtoOaTrendbarPeriod
impl Debug for ProtoOaTrendbarPeriod
Source§impl Default for ProtoOaTrendbarPeriod
impl Default for ProtoOaTrendbarPeriod
Source§fn default() -> ProtoOaTrendbarPeriod
fn default() -> ProtoOaTrendbarPeriod
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProtoOaTrendbarPeriod
impl<'de> Deserialize<'de> for ProtoOaTrendbarPeriod
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
Source§impl From<ProtoOaTrendbarPeriod> for i32
impl From<ProtoOaTrendbarPeriod> for i32
Source§fn from(value: ProtoOaTrendbarPeriod) -> i32
fn from(value: ProtoOaTrendbarPeriod) -> i32
Converts to this type from the input type.
Source§impl Hash for ProtoOaTrendbarPeriod
impl Hash for ProtoOaTrendbarPeriod
Source§impl Ord for ProtoOaTrendbarPeriod
impl Ord for ProtoOaTrendbarPeriod
Source§fn cmp(&self, other: &ProtoOaTrendbarPeriod) -> Ordering
fn cmp(&self, other: &ProtoOaTrendbarPeriod) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ProtoOaTrendbarPeriod
impl PartialEq for ProtoOaTrendbarPeriod
Source§impl PartialOrd for ProtoOaTrendbarPeriod
impl PartialOrd for ProtoOaTrendbarPeriod
Source§impl Serialize for ProtoOaTrendbarPeriod
impl Serialize for ProtoOaTrendbarPeriod
Source§impl TryFrom<i32> for ProtoOaTrendbarPeriod
impl TryFrom<i32> for ProtoOaTrendbarPeriod
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<ProtoOaTrendbarPeriod, UnknownEnumValue>
fn try_from(value: i32) -> Result<ProtoOaTrendbarPeriod, UnknownEnumValue>
Performs the conversion.
impl Copy for ProtoOaTrendbarPeriod
impl Eq for ProtoOaTrendbarPeriod
impl StructuralPartialEq for ProtoOaTrendbarPeriod
Auto Trait Implementations§
impl Freeze for ProtoOaTrendbarPeriod
impl RefUnwindSafe for ProtoOaTrendbarPeriod
impl Send for ProtoOaTrendbarPeriod
impl Sync for ProtoOaTrendbarPeriod
impl Unpin for ProtoOaTrendbarPeriod
impl UnwindSafe for ProtoOaTrendbarPeriod
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.