pub struct Episode {
pub goal: String,
pub outcome: Outcome,
pub summary: String,
pub dead_ends: Vec<String>,
pub touched: Vec<Value>,
pub commits: Vec<String>,
pub session_ref: String,
pub started_at: u64,
pub ended_at: u64,
}Expand description
An episode as it is captured; Episode::body is its contract body.
Fields§
§goal: String§outcome: Outcome§summary: String§dead_ends: Vec<String>§touched: Vec<Value>Code anchors {path, digest} of the files the session changed, at HEAD.
commits: Vec<String>§session_ref: String§started_at: u64§ended_at: u64Implementations§
Source§impl Episode
impl Episode
Sourcepub fn body(&self) -> Result<Value, CloudError>
pub fn body(&self) -> Result<Value, CloudError>
The contract body (episode_body).
Sourcepub fn node_add(
&self,
place: &Place,
stamp: Stamp,
signer: &Signer<'_>,
session: Option<&str>,
) -> Result<(Value, String), CloudError>
pub fn node_add( &self, place: &Place, stamp: Stamp, signer: &Signer<'_>, session: Option<&str>, ) -> Result<(Value, String), CloudError>
A signed node.add of the episode. Returns the event and its node id.
session is the envelope session_ref (V9,
crate::session_ref::SessionRefs::event_ref), None when Cloud
does not accept one.
Trait Implementations§
impl Eq for Episode
impl StructuralPartialEq for Episode
Auto Trait Implementations§
impl Forget for Episode
impl Freeze for Episodewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Value>: Freeze,
impl Move for Episode
impl RefUnwindSafe for Episode
impl Send for Episode
impl Sync for Episode
impl Unpin for Episode
impl UnsafeUnpin for Episodewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
impl UnwindSafe for Episode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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