pub struct Reflection {
pub name: String,
pub purpose: String,
pub state: String,
pub health: f64,
pub thoughts: Vec<String>,
pub capabilities: Vec<String>,
}Expand description
Önreflexió - Mit gondolok magamról?
Fields§
§name: StringModul neve
purpose: StringModul célja
state: StringAktuális állapot szövegesen
health: f64Egészség (0.0 - 1.0)
thoughts: Vec<String>Aktuális gondolatok
capabilities: Vec<String>Képességek listája
Implementations§
Source§impl Reflection
impl Reflection
Sourcepub fn new(name: impl Into<String>, purpose: impl Into<String>) -> Self
pub fn new(name: impl Into<String>, purpose: impl Into<String>) -> Self
Új reflexió létrehozása
Sourcepub fn with_state(self, state: impl Into<String>) -> Self
pub fn with_state(self, state: impl Into<String>) -> Self
Állapot beállítása
Sourcepub fn with_health(self, health: f64) -> Self
pub fn with_health(self, health: f64) -> Self
Egészség beállítása
Sourcepub fn with_thought(self, thought: impl Into<String>) -> Self
pub fn with_thought(self, thought: impl Into<String>) -> Self
Gondolat hozzáadása
Sourcepub fn with_thoughts(self, thoughts: Vec<&str>) -> Self
pub fn with_thoughts(self, thoughts: Vec<&str>) -> Self
Több gondolat hozzáadása
Sourcepub fn with_capability(self, cap: impl Into<String>) -> Self
pub fn with_capability(self, cap: impl Into<String>) -> Self
Képesség hozzáadása
Sourcepub fn with_capabilities(self, caps: Vec<&str>) -> Self
pub fn with_capabilities(self, caps: Vec<&str>) -> Self
Több képesség hozzáadása
Trait Implementations§
Source§impl Clone for Reflection
impl Clone for Reflection
Source§fn clone(&self) -> Reflection
fn clone(&self) -> Reflection
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 Reflection
impl Debug for Reflection
Source§impl<'de> Deserialize<'de> for Reflection
impl<'de> Deserialize<'de> for Reflection
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 Display for Reflection
impl Display for Reflection
Auto Trait Implementations§
impl Freeze for Reflection
impl RefUnwindSafe for Reflection
impl Send for Reflection
impl Sync for Reflection
impl Unpin for Reflection
impl UnwindSafe for Reflection
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> 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::RequestSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.