Enum aptos_config::config::RoleType
source · [−]pub enum RoleType {
Validator,
FullNode,
}
Variants
Validator
FullNode
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for RoleType
impl<'de> Deserialize<'de> for RoleType
sourcefn 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
sourceimpl ParseFromJSON for RoleType
impl ParseFromJSON for RoleType
sourcefn parse_from_json(value: Option<Value>) -> ParseResult<Self>
fn parse_from_json(value: Option<Value>) -> ParseResult<Self>
Parse from [serde_json::Value
].
sourcefn parse_from_json_string(s: &str) -> Result<Self, ParseError<Self>>
fn parse_from_json_string(s: &str) -> Result<Self, ParseError<Self>>
Parse from JSON string.
sourceimpl ParseFromMultipartField for RoleType
impl ParseFromMultipartField for RoleType
sourcefn parse_from_multipart<'async_trait>(
field: Option<Field>
) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>> where
Self: 'async_trait,
fn parse_from_multipart<'async_trait>(
field: Option<Field>
) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>> where
Self: 'async_trait,
Parse from multipart field.
sourcefn parse_from_repeated_field<'async_trait>(
self,
_field: Field
) -> Pin<Box<dyn Future<Output = Result<Self, ParseError<Self>>> + Send + 'async_trait, Global>> where
Self: 'async_trait + Send,
fn parse_from_repeated_field<'async_trait>(
self,
_field: Field
) -> Pin<Box<dyn Future<Output = Result<Self, ParseError<Self>>> + Send + 'async_trait, Global>> where
Self: 'async_trait + Send,
Parse from repeated multipart field.
sourceimpl ParseFromParameter for RoleType
impl ParseFromParameter for RoleType
sourcefn parse_from_parameter(value: &str) -> ParseResult<Self>
fn parse_from_parameter(value: &str) -> ParseResult<Self>
Parse from parameter.
sourcefn parse_from_parameters<I, A>(iter: I) -> Result<Self, ParseError<Self>> where
I: IntoIterator<Item = A>,
A: AsRef<str>,
fn parse_from_parameters<I, A>(iter: I) -> Result<Self, ParseError<Self>> where
I: IntoIterator<Item = A>,
A: AsRef<str>,
Parse from multiple parameters.
sourceimpl Type for RoleType
impl Type for RoleType
sourceconst IS_REQUIRED: bool = true
const IS_REQUIRED: bool = true
If it is true
, it means that this type is required.
type RawValueType = RoleType
type RawValueType = RoleType
The raw type used for validator. Read more
type RawElementValueType = RoleType
type RawElementValueType = RoleType
The raw element type used for validator.
sourcefn as_raw_value(&self) -> Option<&Self::RawValueType>
fn as_raw_value(&self) -> Option<&Self::RawValueType>
Returns a reference to the raw value.
sourcefn schema_ref() -> MetaSchemaRef
fn schema_ref() -> MetaSchemaRef
Get schema reference of this type.
sourcefn raw_element_iter<'a>(
&'a self
) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
fn raw_element_iter<'a>(
&'a self
) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Returns an iterator for traversing the elements.
impl Copy for RoleType
impl Eq for RoleType
impl StructuralEq for RoleType
impl StructuralPartialEq for RoleType
Auto Trait Implementations
impl RefUnwindSafe for RoleType
impl Send for RoleType
impl Sync for RoleType
impl Unpin for RoleType
impl UnwindSafe for RoleType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> PersistableConfig for T where
T: Serialize + DeserializeOwned + ?Sized,
impl<T> PersistableConfig for T where
T: Serialize + DeserializeOwned + ?Sized,
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> Serialize for T where
T: Serialize + ?Sized,
impl<T> Serialize for T where
T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
sourceimpl<T> TestOnlyHash for T where
T: Serialize + ?Sized,
impl<T> TestOnlyHash for T where
T: Serialize + ?Sized,
sourcefn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more