pub struct EnvFile {
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 EnvFile
impl EnvFile
Sourcepub async fn get(&self, name: impl Into<String>) -> Result<String, DaggerError>
pub async fn get(&self, name: impl Into<String>) -> Result<String, DaggerError>
Lookup a variable (last occurrence wins) and return its value, or an empty string
§Arguments
name
- Variable nameopt
- optional argument, see inner type for documentation, use_opts to use
Sourcepub async fn get_opts(
&self,
name: impl Into<String>,
opts: EnvFileGetOpts,
) -> Result<String, DaggerError>
pub async fn get_opts( &self, name: impl Into<String>, opts: EnvFileGetOpts, ) -> Result<String, DaggerError>
Lookup a variable (last occurrence wins) and return its value, or an empty string
§Arguments
name
- Variable nameopt
- optional argument, see inner type for documentation, use_opts to use
Sourcepub async fn id(&self) -> Result<EnvFileId, DaggerError>
pub async fn id(&self) -> Result<EnvFileId, DaggerError>
A unique identifier for this EnvFile.
Sourcepub fn variables(&self) -> Vec<EnvVariable>
pub fn variables(&self) -> Vec<EnvVariable>
Return all variables
§Arguments
opt
- optional argument, see inner type for documentation, use_opts to use
Sourcepub fn variables_opts(&self, opts: EnvFileVariablesOpts) -> Vec<EnvVariable>
pub fn variables_opts(&self, opts: EnvFileVariablesOpts) -> Vec<EnvVariable>
Return all variables
§Arguments
opt
- optional argument, see inner type for documentation, use_opts to use
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EnvFile
impl !RefUnwindSafe for EnvFile
impl Send for EnvFile
impl Sync for EnvFile
impl Unpin for EnvFile
impl !UnwindSafe for EnvFile
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