CreateArguments

Struct CreateArguments 

Source
pub struct CreateArguments {
    pub path: String,
    pub data_sources: Vec<CreateDataSource>,
    pub round_robin_archives: Vec<CreateRoundRobinArchive>,
    pub start_timestamp: u64,
    pub step_seconds: u64,
}
Expand description

Arguments to create a new RRD file

Fields§

§path: String

Path to the RRD file The path must be between 1 and 64 characters and only contain alphanumeric characters and underscores

Does not end with .rrd

§data_sources: Vec<CreateDataSource>

List of data sources, the order is important Must be at least one.

§round_robin_archives: Vec<CreateRoundRobinArchive>

List of round robin archives. Must be at least one.

§start_timestamp: u64

Start time of the first data point

§step_seconds: u64

Number of seconds between two data points

Implementations§

Source§

impl CreateArguments

Source

pub fn validate(&self) -> Result<(), RRDCachedClientError>

Check that the content is valid.

Source

pub fn to_str(&self) -> String

Convert to a string argument parameter.

Trait Implementations§

Source§

impl Debug for CreateArguments

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.