pub struct BindingBuilder { /* private fields */ }Expand description
Builder for creating bindings
Implementations§
Source§impl BindingBuilder
impl BindingBuilder
Sourcepub fn new() -> BindingBuilder
pub fn new() -> BindingBuilder
Create new builder
Sourcepub fn from(binding: &Binding) -> BindingBuilder
pub fn from(binding: &Binding) -> BindingBuilder
Create builder from existing binding
Sourcepub fn parent(self, parent: Arc<Binding>) -> BindingBuilder
pub fn parent(self, parent: Arc<Binding>) -> BindingBuilder
Set parent binding
Sourcepub fn add(self, var: Var, value: Value) -> BindingBuilder
pub fn add(self, var: Var, value: Value) -> BindingBuilder
Add variable binding
Sourcepub fn add_named(self, name: &str, value: Value) -> BindingBuilder
pub fn add_named(self, name: &str, value: Value) -> BindingBuilder
Add variable binding from string name
Sourcepub fn remove(self, var: &Var) -> BindingBuilder
pub fn remove(self, var: &Var) -> BindingBuilder
Remove variable
Trait Implementations§
Source§impl Default for BindingBuilder
impl Default for BindingBuilder
Source§fn default() -> BindingBuilder
fn default() -> BindingBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BindingBuilder
impl RefUnwindSafe for BindingBuilder
impl Send for BindingBuilder
impl Sync for BindingBuilder
impl Unpin for BindingBuilder
impl UnsafeUnpin for BindingBuilder
impl UnwindSafe for BindingBuilder
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> 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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request