pub enum TxCaller {
People(PeopleDesc),
Device(DeviceDesc),
Group(SimpleGroupDesc),
Union(UnionAccountDesc),
Miner(ObjectId),
Id(ObjectId),
}
Variants
People(PeopleDesc)
Device(DeviceDesc)
Group(SimpleGroupDesc)
Union(UnionAccountDesc)
Miner(ObjectId)
Id(ObjectId)
Implementations
sourceimpl TxCaller
impl TxCaller
pub fn id(&self) -> BuckyResult<ObjectId>
pub fn get_public_key(&self) -> BuckyResult<&PublicKey>
pub fn is_miner(&self) -> bool
Trait Implementations
sourceimpl<'__de__> RawDecode<'__de__> for TxCaller
impl<'__de__> RawDecode<'__de__> for TxCaller
fn raw_decode(__buf__: &'__de__ [u8]) -> BuckyResult<(Self, &'__de__ [u8])>
fn raw_decode_with_option(
buf: &'de [u8],
_opt: &RawDecodeOption
) -> BuckyResult<(Self, &'de [u8])>
sourceimpl RawEncode for TxCaller
impl RawEncode for TxCaller
fn raw_encode<'__de__>(
&self,
__buf__: &'__de__ mut [u8],
__purpose__: &Option<RawEncodePurpose>
) -> BuckyResult<&'__de__ mut [u8]>
fn raw_measure(
&self,
__purpose__: &Option<RawEncodePurpose>
) -> BuckyResult<usize>
fn raw_tail_encode<'a>(
&self,
buf: &'a mut [u8],
purpose: &Option<RawEncodePurpose>
) -> BuckyResult<&'a [u8]>
fn raw_encode_to_buffer(&self) -> BuckyResult<Vec<u8>>
fn raw_hash_value(&self) -> BuckyResult<HashValue>
fn hash_buf(&self, encoded_buf: &[u8]) -> HashValue
fn raw_hash_encode(&self) -> BuckyResult<Vec<u8>>
sourceimpl TryFrom<&StandardObject> for TxCaller
impl TryFrom<&StandardObject> for TxCaller
type Error = BuckyError
type Error = BuckyError
The type returned in the event of a conversion error.
sourcefn try_from(obj: &StandardObject) -> Result<Self, Self::Error>
fn try_from(obj: &StandardObject) -> Result<Self, Self::Error>
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for TxCaller
impl Send for TxCaller
impl Sync for TxCaller
impl Unpin for TxCaller
impl UnwindSafe for TxCaller
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more