pub struct LogTransformed {
pub header: Header,
pub agents: Vec<Agent>,
pub skills: Vec<Skill>,
pub events: Vec<EventKind>,
}Expand description
A transformed EVTC log.
Fields§
§header: HeaderThe log header with meta information.
agents: Vec<Agent>Agents (entities) present in the log.
skills: Vec<Skill>Information about skills used in the log.
events: Vec<EventKind>Implementations§
Source§impl LogTransformed
impl LogTransformed
Sourcepub fn agent_mut(&mut self, id: u64) -> Option<&mut Agent>
pub fn agent_mut(&mut self, id: u64) -> Option<&mut Agent>
Returns a mutable reference to the Agent with the given id.
Sourcepub fn agent_name(&self, id: u64) -> Option<&[String]>
pub fn agent_name(&self, id: u64) -> Option<&[String]>
Returns the name of the Agent with the given id.
Trait Implementations§
Source§impl Clone for LogTransformed
impl Clone for LogTransformed
Source§fn clone(&self) -> LogTransformed
fn clone(&self) -> LogTransformed
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 LogTransformed
impl Debug for LogTransformed
Source§impl<'de> Deserialize<'de> for LogTransformed
impl<'de> Deserialize<'de> for LogTransformed
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Log> for LogTransformed
impl From<Log> for LogTransformed
Source§impl Parse for LogTransformed
impl Parse for LogTransformed
Source§type Error = ParseError
type Error = ParseError
Associated error which can happen during parsing.
Source§fn parse(input: &mut impl Read) -> Result<Self, Self::Error>
fn parse(input: &mut impl Read) -> Result<Self, Self::Error>
Parses a value of this type from the input.
Source§fn parse_multi<T>(input: &mut impl Read, count: usize) -> Result<T, Self::Error>where
T: FromIterator<Self>,
fn parse_multi<T>(input: &mut impl Read, count: usize) -> Result<T, Self::Error>where
T: FromIterator<Self>,
Parses multiple values of this type from the input into a
Vec.Auto Trait Implementations§
impl Freeze for LogTransformed
impl RefUnwindSafe for LogTransformed
impl Send for LogTransformed
impl Sync for LogTransformed
impl Unpin for LogTransformed
impl UnwindSafe for LogTransformed
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