pub struct ContextBuilder { /* private fields */ }Implementations§
Source§impl ContextBuilder
impl ContextBuilder
pub fn new() -> Self
pub fn insert_context(&mut self, name: impl Into<String>, value: Value)
pub fn insert_root_object(&mut self, value: Value) -> Result<()>
pub fn insert_eventsmith_github_context(&mut self, value: Value) -> Result<()>
pub fn insert_github_event(&mut self, event: Value)
pub fn insert_context_value(&mut self, name: &str, value: Value) -> Result<()>
pub fn build(self) -> Value
Trait Implementations§
Source§impl Debug for ContextBuilder
impl Debug for ContextBuilder
Source§impl Default for ContextBuilder
impl Default for ContextBuilder
Source§fn default() -> ContextBuilder
fn default() -> ContextBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ContextBuilder
impl RefUnwindSafe for ContextBuilder
impl Send for ContextBuilder
impl Sync for ContextBuilder
impl Unpin for ContextBuilder
impl UnsafeUnpin for ContextBuilder
impl UnwindSafe for ContextBuilder
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