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