pub struct DependencyGraphBuilder { /* private fields */ }Expand description
DependencyGraph のビルダー
Implementations§
Source§impl DependencyGraphBuilder
impl DependencyGraphBuilder
pub fn new() -> Self
Sourcepub fn available_actions<I, S>(self, actions: I) -> Self
pub fn available_actions<I, S>(self, actions: I) -> Self
利用可能なアクションを設定
Sourcepub fn edge(
self,
from: impl Into<String>,
to: impl Into<String>,
confidence: f64,
) -> Self
pub fn edge( self, from: impl Into<String>, to: impl Into<String>, confidence: f64, ) -> Self
エッジを追加
Sourcepub fn start_node(self, action: impl Into<String>) -> Self
pub fn start_node(self, action: impl Into<String>) -> Self
開始ノードを追加
Sourcepub fn start_nodes<I, S>(self, actions: I) -> Self
pub fn start_nodes<I, S>(self, actions: I) -> Self
複数の開始ノードを追加
Sourcepub fn terminal_node(self, action: impl Into<String>) -> Self
pub fn terminal_node(self, action: impl Into<String>) -> Self
終端ノードを追加
Sourcepub fn terminal_nodes<I, S>(self, actions: I) -> Self
pub fn terminal_nodes<I, S>(self, actions: I) -> Self
複数の終端ノードを追加
Sourcepub fn param_variants<I, S>(
self,
action: impl Into<String>,
key: impl Into<String>,
values: I,
) -> Self
pub fn param_variants<I, S>( self, action: impl Into<String>, key: impl Into<String>, values: I, ) -> Self
パラメータバリアントを追加
指定アクションの後続ノード展開時に、各バリアントごとにノードを生成する。
Sourcepub fn build(self) -> DependencyGraph
pub fn build(self) -> DependencyGraph
グラフを構築
Sourcepub fn build_validated(self) -> Result<DependencyGraph, DependencyGraphError>
pub fn build_validated(self) -> Result<DependencyGraph, DependencyGraphError>
グラフを構築してバリデーション
Trait Implementations§
Source§impl Clone for DependencyGraphBuilder
impl Clone for DependencyGraphBuilder
Source§fn clone(&self) -> DependencyGraphBuilder
fn clone(&self) -> DependencyGraphBuilder
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 Debug for DependencyGraphBuilder
impl Debug for DependencyGraphBuilder
Source§impl Default for DependencyGraphBuilder
impl Default for DependencyGraphBuilder
Source§fn default() -> DependencyGraphBuilder
fn default() -> DependencyGraphBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DependencyGraphBuilder
impl RefUnwindSafe for DependencyGraphBuilder
impl Send for DependencyGraphBuilder
impl Sync for DependencyGraphBuilder
impl Unpin for DependencyGraphBuilder
impl UnwindSafe for DependencyGraphBuilder
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