[−][src]Struct stellar_base::time_bounds::TimeBounds
The time window in which a transaction is considered valid.
Implementations
impl TimeBounds
[src]
pub fn valid_for(duration: Duration) -> TimeBounds
[src]
Returns time bounds with the upper bounds set to duration
in the future.
pub fn always_valid() -> TimeBounds
[src]
Returns time bounds such that the transaction is always valid.
pub fn with_lower(&self, lower: DateTime<Utc>) -> Result<TimeBounds>
[src]
Makes a new time bounds with the lower bound changed.
pub fn with_upper(&self, upper: DateTime<Utc>) -> Result<TimeBounds>
[src]
Makes a new time bounds with the upper bound changed.
pub fn lower(&self) -> &Option<DateTime<Utc>>
[src]
Retrieves the time bounds lower bound.
pub fn lower_mut(&mut self) -> &mut Option<DateTime<Utc>>
[src]
Retrieves a mutable reference to the time bounds lower bound.
pub fn upper(&self) -> &Option<DateTime<Utc>>
[src]
Retrieves the time bounds lower bound.
pub fn upper_mut(&mut self) -> &mut Option<DateTime<Utc>>
[src]
Retrieves a mutable reference to the time bounds lower bound.
pub fn to_xdr(&self) -> Result<TimeBounds>
[src]
Returns the xdr object.
pub fn from_xdr(x: &TimeBounds) -> Result<TimeBounds>
[src]
Creates from the xdr object.
Trait Implementations
impl Clone for TimeBounds
[src]
fn clone(&self) -> TimeBounds
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TimeBounds
[src]
impl Eq for TimeBounds
[src]
impl PartialEq<TimeBounds> for TimeBounds
[src]
fn eq(&self, other: &TimeBounds) -> bool
[src]
fn ne(&self, other: &TimeBounds) -> bool
[src]
impl StructuralEq for TimeBounds
[src]
impl StructuralPartialEq for TimeBounds
[src]
impl XDRDeserialize for TimeBounds
[src]
fn from_xdr_bytes(buffer: &[u8]) -> Result<(Self, u64)>
[src]
fn from_xdr_base64(encoded: &str) -> Result<Self>
[src]
impl XDRSerialize for TimeBounds
[src]
Auto Trait Implementations
impl RefUnwindSafe for TimeBounds
impl Send for TimeBounds
impl Sync for TimeBounds
impl Unpin for TimeBounds
impl UnwindSafe for TimeBounds
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,