Struct osc_cost::oapi::Input

source ·
pub struct Input {
Show 20 fields pub vms: HashMap<String, Vm>, pub vms_images: HashMap<String, Image>, pub catalog: HashMap<String, CatalogEntry>, pub need_vm_types_fetch: bool, pub use_dedicated_instance: bool, pub vm_types: HashMap<String, VmType>, pub account: Option<Account>, pub region: Option<String>, pub need_default_resource: bool, pub nat_services: HashMap<String, NatService>, pub volumes: HashMap<String, Volume>, pub snapshots: HashMap<String, Snapshot>, pub fetch_date: Option<DateTime<Utc>>, pub public_ips: HashMap<String, PublicIp>, pub filters: Option<Filter>, pub flexible_gpus: HashMap<String, FlexibleGpu>, pub load_balancers: Vec<String>, pub vpns: Vec<String>, pub buckets: HashMap<String, OosBucket>, pub consumption: HashMap<String, ConsumptionEntry>, /* private fields */
}

Fields§

§vms: HashMap<String, Vm>§vms_images: HashMap<String, Image>§catalog: HashMap<String, CatalogEntry>§need_vm_types_fetch: bool§use_dedicated_instance: bool§vm_types: HashMap<String, VmType>§account: Option<Account>§region: Option<String>§need_default_resource: bool§nat_services: HashMap<String, NatService>§volumes: HashMap<String, Volume>§snapshots: HashMap<String, Snapshot>§fetch_date: Option<DateTime<Utc>>§public_ips: HashMap<String, PublicIp>§filters: Option<Filter>§flexible_gpus: HashMap<String, FlexibleGpu>§load_balancers: Vec<String>§vpns: Vec<String>§buckets: HashMap<String, OosBucket>§consumption: HashMap<String, ConsumptionEntry>

Implementations§

source§

impl Input

source§

impl Input

source

pub fn fetch_digest( &mut self, from_date: &str, to_date: &str ) -> Result<(), Box<dyn Error>>

source

pub fn fill_digest(&self, digests: &mut HashMap<String, Digest>)

source§

impl Input

source

pub fn fetch_flexible_gpus(&mut self) -> Result<(), Box<dyn Error>>

source

pub fn fill_resource_flexible_gpus(&self, resources: &mut Resources)

source§

impl Input

source

pub fn fetch_load_balancers(&mut self) -> Result<(), Box<dyn Error>>

source

pub fn fill_resource_load_balancers(&self, resources: &mut Resources)

source§

impl Input

source

pub fn fetch_nat_services(&mut self) -> Result<(), Box<dyn Error>>

source

pub fn fill_resource_nat_service(&self, resources: &mut Resources)

source§

impl Input

source

pub fn fetch_buckets(&mut self) -> Result<(), Box<dyn Error>>

source

pub fn fill_resource_oos(&self, resources: &mut Resources)

source§

impl Input

source

pub fn fetch_public_ips(&mut self) -> Result<(), Box<dyn Error>>

source

pub fn fill_resource_public_ip(&self, resources: &mut Resources)

source§

impl Input

source

pub fn fetch_snapshots(&mut self) -> Result<(), Box<dyn Error>>

source

pub fn fill_resource_snapshot(&self, resources: &mut Resources)

source§

impl Input

source

pub fn fetch_vms(&mut self) -> Result<(), Box<dyn Error>>

source

pub fn fetch_vms_images(&mut self) -> Result<(), Box<dyn Error>>

source

pub fn fetch_vm_types(&mut self) -> Result<(), Box<dyn Error>>

source

pub fn fill_resource_vm(&mut self, resources: &mut Resources)

source§

impl Input

source

pub fn fetch_volumes(&mut self) -> Result<(), Box<dyn Error>>

source

pub fn fill_resource_volume(&self, resources: &mut Resources)

source§

impl Input

source

pub fn fetch_vpns(&mut self) -> Result<(), Box<dyn Error>>

source

pub fn fill_resource_vpns(&self, resources: &mut Resources)

source§

impl Input

source

pub fn new(profile_name: String) -> Result<Input, Box<dyn Error>>

source

pub fn fetch(&mut self) -> Result<(), Box<dyn Error>>

source

pub fn fetch_catalog(&mut self) -> Result<(), Box<dyn Error>>

Trait Implementations§

source§

impl From<Input> for Resources

source§

fn from(input: Input) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl !RefUnwindSafe for Input

§

impl !Send for Input

§

impl !Sync for Input

§

impl Unpin for Input

§

impl !UnwindSafe for Input

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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> Same for T

§

type Output = T

Should always be Self
source§

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

§

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>,

§

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.
§

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

§

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

§

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

§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more