pub struct DataSource {
    pub emitter_chain: u64,
    pub emitter_address: ExternalAddress,
}Fields§
§emitter_chain: u64§emitter_address: ExternalAddressImplementations§
Source§impl DataSource
 
impl DataSource
Sourcepub fn new(emitter_chain: u64, emitter_address: ExternalAddress) -> Self
 
pub fn new(emitter_chain: u64, emitter_address: ExternalAddress) -> Self
Constructs a new DataSource.
Source§impl DataSource
 
impl DataSource
pub fn move_instance(self, address: Address) -> MoveInstance<Self>
pub fn type_(address: Address) -> DataSourceTypeTag
Trait Implementations§
Source§impl Clone for DataSource
 
impl Clone for DataSource
Source§fn clone(&self) -> DataSource
 
fn clone(&self) -> DataSource
Returns a copy 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 DataSource
 
impl Debug for DataSource
Source§impl<'de> Deserialize<'de> for DataSource
 
impl<'de> Deserialize<'de> for DataSource
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 DataSource
 
impl Display for DataSource
Source§impl Hash for DataSource
 
impl Hash for DataSource
Source§impl MoveStruct for DataSource
 
impl MoveStruct for DataSource
Source§impl MoveType for DataSource
 
impl MoveType for DataSource
Source§impl PartialEq for DataSource
 
impl PartialEq for DataSource
Source§impl Serialize for DataSource
 
impl Serialize for DataSource
Source§impl StaticModule for DataSource
 
impl StaticModule for DataSource
fn module() -> Identifier
Source§impl StaticName for DataSource
 
impl StaticName for DataSource
fn name() -> Identifier
Source§impl StaticTypeParams for DataSource
 
impl StaticTypeParams for DataSource
fn type_params() -> Vec<TypeTag>
Source§impl Tabled for DataSource
 
impl Tabled for DataSource
impl Eq for DataSource
impl StructuralPartialEq for DataSource
Auto Trait Implementations§
impl Freeze for DataSource
impl RefUnwindSafe for DataSource
impl Send for DataSource
impl Sync for DataSource
impl Unpin for DataSource
impl UnwindSafe for DataSource
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<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.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 more