pub struct EnumTypeDef {
pub proc: Option<Arc<DaggerSessionProc>>,
pub selection: Selection,
pub graphql_client: DynGraphQLClient,
}
Fields§
§proc: Option<Arc<DaggerSessionProc>>
§selection: Selection
§graphql_client: DynGraphQLClient
Implementations§
Source§impl EnumTypeDef
impl EnumTypeDef
Sourcepub async fn description(&self) -> Result<String, DaggerError>
pub async fn description(&self) -> Result<String, DaggerError>
A doc string for the enum, if any.
Sourcepub async fn id(&self) -> Result<EnumTypeDefId, DaggerError>
pub async fn id(&self) -> Result<EnumTypeDefId, DaggerError>
A unique identifier for this EnumTypeDef.
Sourcepub fn members(&self) -> Vec<EnumValueTypeDef>
pub fn members(&self) -> Vec<EnumValueTypeDef>
The members of the enum.
Sourcepub async fn name(&self) -> Result<String, DaggerError>
pub async fn name(&self) -> Result<String, DaggerError>
The name of the enum.
Sourcepub fn source_map(&self) -> SourceMap
pub fn source_map(&self) -> SourceMap
The location of this enum declaration.
Sourcepub async fn source_module_name(&self) -> Result<String, DaggerError>
pub async fn source_module_name(&self) -> Result<String, DaggerError>
If this EnumTypeDef is associated with a Module, the name of the module. Unset otherwise.
pub fn values(&self) -> Vec<EnumValueTypeDef>
Trait Implementations§
Source§impl Clone for EnumTypeDef
impl Clone for EnumTypeDef
Source§fn clone(&self) -> EnumTypeDef
fn clone(&self) -> EnumTypeDef
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 IntoID<EnumTypeDefId> for EnumTypeDef
impl IntoID<EnumTypeDefId> for EnumTypeDef
fn into_id( self, ) -> Pin<Box<dyn Future<Output = Result<EnumTypeDefId, DaggerError>> + Send>>
Auto Trait Implementations§
impl Freeze for EnumTypeDef
impl !RefUnwindSafe for EnumTypeDef
impl Send for EnumTypeDef
impl Sync for EnumTypeDef
impl Unpin for EnumTypeDef
impl !UnwindSafe for EnumTypeDef
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