Struct shuttle_core::TimeBounds
[−]
[src]
pub struct TimeBounds { /* fields omitted */ }
A time range for the validity of an operation.
Methods
impl TimeBounds
[src]
fn new(lower: Option<UnixTimestamp>, upper: Option<UnixTimestamp>) -> TimeBounds
[src]
Create new time bounds for the validity of an operation.
If lower
is not None
, the operation will not be valid before the specified date.
If upper
is not None
, the operation will not be valid after the specified date.
fn lower(&self) -> &Option<UnixTimestamp>
[src]
The lower time bound.
fn upper(&self) -> &Option<UnixTimestamp>
[src]
The upper time bound.
Trait Implementations
impl Debug for TimeBounds
[src]
impl Clone for TimeBounds
[src]
fn clone(&self) -> TimeBounds
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for TimeBounds
[src]
fn eq(&self, __arg_0: &TimeBounds) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TimeBounds) -> bool
[src]
This method tests for !=
.
impl Eq for TimeBounds
[src]
impl ToXdr<TimeBounds> for TimeBounds
[src]
fn to_xdr(&self) -> Result<TimeBounds>
[src]
Build the object that can be serialized to XDR.
fn to_writer<W: Write>(&self, w: &mut W) -> Result<()>
[src]
Serialize to the writer w
.
fn to_base64(&self) -> Result<String>
[src]
Serialize to base64.
impl<'de> FromXdr<'de, TimeBounds> for TimeBounds
[src]
fn from_xdr(time: TimeBounds) -> Result<TimeBounds>
[src]
Build the type from the XDR other
object .
fn from_reader<R: Read>(r: &mut R) -> Result<Self>
[src]
Deserialize from a reader r
.
fn from_base64(input: &str) -> Result<Self>
[src]
Deserialize from base64.