pub struct TaskRequestBuilder { /* private fields */ }

Implementations§

Examples found in repository?
src/msg.rs (line 330)
329
330
331
    fn default() -> Self {
        Self::new()
    }
Examples found in repository?
src/msg.rs (line 247)
246
247
248
249
250
251
252
253
254
255
256
257
    pub fn once(&mut self) -> &mut Self {
        self.with_interval(Interval::Once)
    }
    pub fn block(&mut self, block_inerval: u64) -> &mut Self {
        self.with_interval(Interval::Block(block_inerval))
    }
    pub fn cron(&mut self, crontab: String) -> &mut Self {
        self.with_interval(Interval::Cron(crontab))
    }
    pub fn immediate(&mut self) -> &mut Self {
        self.with_interval(Interval::Immediate)
    }
Examples found in repository?
src/msg.rs (lines 263-266)
262
263
264
265
266
267
268
269
270
271
272
273
    pub fn with_time_boundary(&mut self, start: Timestamp, end: Timestamp) -> &mut Self {
        self.with_boundary(Boundary::Time {
            start: Some(start),
            end: Some(end),
        })
    }
    pub fn with_height_boundary(&mut self, start: u64, end: u64) -> &mut Self {
        self.with_boundary(Boundary::Height {
            start: Some(Uint64::new(start)),
            end: Some(Uint64::new(end)),
        })
    }

Trait Implementations§

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.