pub struct RunLifecycleStateRef<'a> { /* private fields */ }Expand description
Typed state reference for reading and writing state.
All modifications are automatically collected by the associated PatchSink.
Implementations§
Source§impl<'a> RunLifecycleStateRef<'a>
impl<'a> RunLifecycleStateRef<'a>
Sourcepub fn id(&self) -> TireaResult<String>
pub fn id(&self) -> TireaResult<String>
Read the field value.
Sourcepub fn status(&self) -> TireaResult<RunStatus>
pub fn status(&self) -> TireaResult<RunStatus>
Read the field value.
Sourcepub fn done_reason(&self) -> TireaResult<Option<String>>
pub fn done_reason(&self) -> TireaResult<Option<String>>
Read the optional field value.
Sourcepub fn updated_at(&self) -> TireaResult<u64>
pub fn updated_at(&self) -> TireaResult<u64>
Read the field value.
Sourcepub fn set_status(&self, value: RunStatus) -> TireaResult<()>
pub fn set_status(&self, value: RunStatus) -> TireaResult<()>
Set the field value.
Sourcepub fn set_done_reason(&self, value: Option<String>) -> TireaResult<()>
pub fn set_done_reason(&self, value: Option<String>) -> TireaResult<()>
Set the optional field value.
Sourcepub fn done_reason_none(&self) -> TireaResult<()>
pub fn done_reason_none(&self) -> TireaResult<()>
Set the optional field to null (None).
Sourcepub fn set_updated_at(&self, value: u64) -> TireaResult<()>
pub fn set_updated_at(&self, value: u64) -> TireaResult<()>
Set the field value.
Sourcepub fn delete_id(&self) -> TireaResult<()>
pub fn delete_id(&self) -> TireaResult<()>
Delete this field entirely from the object.
Sourcepub fn delete_status(&self) -> TireaResult<()>
pub fn delete_status(&self) -> TireaResult<()>
Delete this field entirely from the object.
Sourcepub fn delete_done_reason(&self) -> TireaResult<()>
pub fn delete_done_reason(&self) -> TireaResult<()>
Delete this field entirely from the object.
Sourcepub fn delete_updated_at(&self) -> TireaResult<()>
pub fn delete_updated_at(&self) -> TireaResult<()>
Delete this field entirely from the object.
Auto Trait Implementations§
impl<'a> Freeze for RunLifecycleStateRef<'a>
impl<'a> !RefUnwindSafe for RunLifecycleStateRef<'a>
impl<'a> Send for RunLifecycleStateRef<'a>
impl<'a> Sync for RunLifecycleStateRef<'a>
impl<'a> Unpin for RunLifecycleStateRef<'a>
impl<'a> !UnwindSafe for RunLifecycleStateRef<'a>
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