Enum plexo_sdk::members::member::MemberRole
source · pub enum MemberRole {
Admin,
Member,
ReadOnly,
}Variants§
Trait Implementations§
source§impl Clone for MemberRole
impl Clone for MemberRole
source§fn clone(&self) -> MemberRole
fn clone(&self) -> MemberRole
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 MemberRole
impl Debug for MemberRole
source§impl Default for MemberRole
impl Default for MemberRole
source§fn default() -> MemberRole
fn default() -> MemberRole
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for MemberRole
impl<'de> Deserialize<'de> for MemberRole
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 Display for MemberRole
impl Display for MemberRole
source§impl EnumType for MemberRole
impl EnumType for MemberRole
source§fn items() -> &'static [EnumItem<MemberRole>]
fn items() -> &'static [EnumItem<MemberRole>]
Get a list of possible variants of the enum and their values.
source§impl From<MemberRole> for Value
impl From<MemberRole> for Value
source§fn from(value: MemberRole) -> Value
fn from(value: MemberRole) -> Value
Converts to this type from the input type.
source§impl FromStr for MemberRole
impl FromStr for MemberRole
source§impl InputType for MemberRole
impl InputType for MemberRole
§type RawValueType = MemberRole
type RawValueType = MemberRole
The raw type used for validator. Read more
source§fn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
source§fn parse(value: Option<Value>) -> InputValueResult<Self>
fn parse(value: Option<Value>) -> InputValueResult<Self>
Parse from
Value. None represents undefined.source§fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn as_raw_value(&self) -> Option<&Self::RawValueType>
Returns a reference to the raw value.
source§fn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
source§impl OutputType for MemberRole
impl OutputType for MemberRole
source§fn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
source§fn resolve<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_: &'life1 ContextSelectionSet<'life2>,
_field: &'life3 Positioned<Field>
) -> Pin<Box<dyn Future<Output = ServerResult<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn resolve<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, _: &'life1 ContextSelectionSet<'life2>, _field: &'life3 Positioned<Field> ) -> Pin<Box<dyn Future<Output = ServerResult<Value>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,
Resolve an output value to
async_graphql::Value.source§fn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
source§impl ParseFromJSON for MemberRole
impl ParseFromJSON for MemberRole
source§fn parse_from_json(value: Option<Value>) -> ParseResult<Self>
fn parse_from_json(value: Option<Value>) -> ParseResult<Self>
Parse from
serde_json::Value.source§fn 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.
source§impl ParseFromMultipartField for MemberRole
impl ParseFromMultipartField for MemberRole
source§fn 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.
source§fn parse_from_repeated_field<'async_trait>(
self,
_field: Field
) -> Pin<Box<dyn Future<Output = Result<Self, ParseError<Self>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
fn parse_from_repeated_field<'async_trait>( self, _field: Field ) -> Pin<Box<dyn Future<Output = Result<Self, ParseError<Self>>> + Send + 'async_trait>>where Self: Send + 'async_trait,
Parse from repeated multipart field.
source§impl ParseFromParameter for MemberRole
impl ParseFromParameter for MemberRole
source§fn parse_from_parameter(value: &str) -> ParseResult<Self>
fn parse_from_parameter(value: &str) -> ParseResult<Self>
Parse from parameter.
source§fn 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.
source§impl PartialEq for MemberRole
impl PartialEq for MemberRole
source§fn eq(&self, other: &MemberRole) -> bool
fn eq(&self, other: &MemberRole) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for MemberRole
impl Serialize for MemberRole
source§impl ToJSON for MemberRole
impl ToJSON for MemberRole
source§impl TryFrom<&str> for MemberRole
impl TryFrom<&str> for MemberRole
source§impl Type for MemberRole
impl Type for MemberRole
source§const IS_REQUIRED: bool = true
const IS_REQUIRED: bool = true
If it is
true, it means that this type is required.§type RawValueType = MemberRole
type RawValueType = MemberRole
The raw type used for validator. Read more
§type RawElementValueType = MemberRole
type RawElementValueType = MemberRole
The raw element type used for validator.
source§fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn as_raw_value(&self) -> Option<&Self::RawValueType>
Returns a reference to the raw value.
source§fn schema_ref() -> MetaSchemaRef
fn schema_ref() -> MetaSchemaRef
Get schema reference of this type.
source§fn 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 MemberRole
impl Eq for MemberRole
impl StructuralEq for MemberRole
impl StructuralPartialEq for MemberRole
Auto Trait Implementations§
impl RefUnwindSafe for MemberRole
impl Send for MemberRole
impl Sync for MemberRole
impl Unpin for MemberRole
impl UnwindSafe for MemberRole
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.