Struct acter_core::templates::values::UserValue
source · pub struct UserValue { /* private fields */ }
Expand description
Hold a User client
Trait Implementations§
source§impl Object for UserValue
impl Object for UserValue
source§fn get_value(self: &Arc<Self>, field: &Value) -> Option<Value>
fn get_value(self: &Arc<Self>, field: &Value) -> Option<Value>
Given a key, looks up the associated value.
source§fn repr(self: &Arc<Self>) -> ObjectRepr
fn repr(self: &Arc<Self>) -> ObjectRepr
Indicates the natural representation of an object. Read more
source§fn enumerator_len(self: &Arc<Self>) -> Option<usize>
fn enumerator_len(self: &Arc<Self>) -> Option<usize>
Returns the length of the enumerator. Read more
source§fn is_true(self: &Arc<Self>) -> bool
fn is_true(self: &Arc<Self>) -> bool
Returns
true
if this object is considered true for if conditions. Read moresource§fn call(
self: &Arc<Self>,
state: &State<'_, '_>,
args: &[Value],
) -> Result<Value, Error>
fn call( self: &Arc<Self>, state: &State<'_, '_>, args: &[Value], ) -> Result<Value, Error>
The engine calls this to invoke the object itself. Read more
Auto Trait Implementations§
impl Freeze for UserValue
impl !RefUnwindSafe for UserValue
impl Send for UserValue
impl Sync for UserValue
impl Unpin for UserValue
impl !UnwindSafe for UserValue
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, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
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 moresource§impl<T> ObjectExt for T
impl<T> ObjectExt for T
source§fn mapped_enumerator<F>(self: &Arc<Self>, maker: F) -> Enumerator
fn mapped_enumerator<F>(self: &Arc<Self>, maker: F) -> Enumerator
Creates a new iterator enumeration that projects into the given object. Read more
source§fn mapped_rev_enumerator<F>(self: &Arc<Self>, maker: F) -> Enumerator
fn mapped_rev_enumerator<F>(self: &Arc<Self>, maker: F) -> Enumerator
Creates a new reversible iterator enumeration that projects into the given object. Read more