Skip to main content

AuthTokenPreimage

Struct AuthTokenPreimage 

Source
pub struct AuthTokenPreimage<T> {
    pub consumer: ContractAddress,
    pub data: T,
}

Fields§

§consumer: ContractAddress§data: T

Trait Implementations§

Source§

impl<'r, T: ReadXDR<'r>> ReadXDR<'r> for AuthTokenPreimage<T>

Source§

fn read_xdr<R: Reader<'r>>(r: &mut R) -> ReadResult<Self>

Reads an XDR value from the reader. Read more
Source§

fn read_xdr_in_place<'s, R>( r: &mut R, slot: Slot<'s, Self>, ) -> Result<Init<'s, Self>, ReadError>
where R: Reader<'r>,

Reads an XDR value directly into slot, without first building it on the stack. Read more
Source§

impl<T: WriteXDR> WriteXDR for AuthTokenPreimage<T>

Source§

fn write_xdr<F, W: Writer<F>>(&self, w: &mut W) -> WriteResult<()>

Writes this value as XDR data to the writer. Read more
Source§

unsafe fn write_xdr_unchecked<F, W: WriterUnchecked<F>>(&self, w: &mut W)

Writes this value as XDR data to the writer, without runtime checks. Read more

Auto Trait Implementations§

§

impl<T> Freeze for AuthTokenPreimage<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for AuthTokenPreimage<T>
where T: RefUnwindSafe,

§

impl<T> Send for AuthTokenPreimage<T>
where T: Send,

§

impl<T> Sync for AuthTokenPreimage<T>
where T: Sync,

§

impl<T> Unpin for AuthTokenPreimage<T>
where T: Unpin,

§

impl<T> UnsafeUnpin for AuthTokenPreimage<T>
where T: UnsafeUnpin,

§

impl<T> UnwindSafe for AuthTokenPreimage<T>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Hash for T
where T: WriteXDR,

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ReadXDROwned for T
where T: for<'r> ReadXDR<'r>,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> StaticIfNoAlloc for T

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.