pub struct EnvironmentSpec {
pub env_type: String,
pub actions: Vec<ActionSpec>,
pub description: String,
}Expand description
Environment 仕様
Fields§
§env_type: StringEnvironment タイプ名
actions: Vec<ActionSpec>サポートするアクション
description: String説明
Implementations§
Source§impl EnvironmentSpec
impl EnvironmentSpec
Sourcepub fn new(env_type: impl Into<String>, description: impl Into<String>) -> Self
pub fn new(env_type: impl Into<String>, description: impl Into<String>) -> Self
新しい Environment 仕様を作成
Sourcepub fn action(self, spec: ActionSpec) -> Self
pub fn action(self, spec: ActionSpec) -> Self
アクションを追加
Sourcepub fn supports_action(&self, name: &str) -> bool
pub fn supports_action(&self, name: &str) -> bool
指定された名前のアクションがサポートされているか
Sourcepub fn get_action(&self, name: &str) -> Option<&ActionSpec>
pub fn get_action(&self, name: &str) -> Option<&ActionSpec>
指定された名前にマッチするアクション仕様を取得
Trait Implementations§
Source§impl Clone for EnvironmentSpec
impl Clone for EnvironmentSpec
Source§fn clone(&self) -> EnvironmentSpec
fn clone(&self) -> EnvironmentSpec
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 moreAuto Trait Implementations§
impl Freeze for EnvironmentSpec
impl RefUnwindSafe for EnvironmentSpec
impl Send for EnvironmentSpec
impl Sync for EnvironmentSpec
impl Unpin for EnvironmentSpec
impl UnwindSafe for EnvironmentSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more