pub struct BaseUrlRotationEvent { /* private fields */ }
Expand description
Struct that represents a BaseUrlRotationEvent.
Implementations§
source§impl BaseUrlRotationEvent
impl BaseUrlRotationEvent
sourcepub fn new_base_url(&self) -> &[u8] ⓘ
pub fn new_base_url(&self) -> &[u8] ⓘ
Get the new base url
sourcepub fn time_rotated_seconds(&self) -> u64
pub fn time_rotated_seconds(&self) -> u64
Get the (blockchain) time in seconds when the url was rotated
pub fn try_from_bytes(bytes: &[u8]) -> Result<Self>
Trait Implementations§
source§impl Debug for BaseUrlRotationEvent
impl Debug for BaseUrlRotationEvent
source§impl<'de> Deserialize<'de> for BaseUrlRotationEvent
impl<'de> Deserialize<'de> for BaseUrlRotationEvent
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 MoveStructType for BaseUrlRotationEvent
impl MoveStructType for BaseUrlRotationEvent
const MODULE_NAME: &'static IdentStr = _
const STRUCT_NAME: &'static IdentStr = _
fn module_identifier() -> Identifier
fn struct_identifier() -> Identifier
fn type_params() -> Vec<TypeTag, Global> ⓘ
fn struct_tag() -> StructTag
source§impl Serialize for BaseUrlRotationEvent
impl Serialize for BaseUrlRotationEvent
source§impl TryFrom<&ContractEvent> for BaseUrlRotationEvent
impl TryFrom<&ContractEvent> for BaseUrlRotationEvent
Auto Trait Implementations§
impl RefUnwindSafe for BaseUrlRotationEvent
impl Send for BaseUrlRotationEvent
impl Sync for BaseUrlRotationEvent
impl Unpin for BaseUrlRotationEvent
impl UnwindSafe for BaseUrlRotationEvent
Blanket Implementations§
source§impl<T> TestOnlyHash for Twhere
T: Serialize + ?Sized,
impl<T> TestOnlyHash for Twhere T: Serialize + ?Sized,
source§fn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.