Skip to content

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 06 Jun 09:35
· 578 commits to v0.x.x since this release
v0.3.0
340100b

Frequenz Common API Release Notes

Summary

This release includes renaming the EVChargerType enum to EvChargerType and
the addition of the MetricAggregation message.

Upgrading

  • The submodule URL was changed to use HTTPS instead of SSH (to avoid problems trying to unlock SSH keys to do updates, etc.).

    Make sure you sync your submodules to the new URL:

    $ git submodule sync
    Synchronizing submodule url for 'submodules/api-common-protos'
  • EVChargerType enum refactored

    The enum with the oder variants was compiled into the following rust enum
    (by prost):

    pub enum EvChargerType {
        /// Default type.
        EvchargerTypeUnspecified = 0,
        /// The EV charging station supports AC charging only.
        EvchargerTypeAc = 1,
        /// The EV charging station supports DC charging only.
        EvchargerTypeDc = 2,
        /// The EV charging station supports both AC and DC.
        EvchargerTypeHybrid = 3,
    }

    Here the enum variants were unnecessarily prefixed with EvchargerType.
    This lead to accessing the enum variants in a very verbose manner, e.g.,
    EvChargerType::EvchargerTypeHybrid.

    The changed version of the enum in this commit results in the following
    rust enum:

    pub enum EvChargerType {
        /// Default type.
        Unspecified = 0,
        /// The EV charging station supports AC charging only.
        Ac = 1,
        /// The EV charging station supports DC charging only.
        Dc = 2,
        /// The EV charging station supports both AC and DC.
        Hybrid = 3,
    }

    Here the unnecessary prefix EvchargerType is absent. This reduces the
    verbosity while accessing the enum variants, making the resulting rust code
    more readable, e.g., as EvChargerType::Hybrid.

    This change also leads to renaming the enum from EVChargerType to
    EvChargerType, to satisfy protolint requirements.

New Features

Bug Fixes

None

What's Changed

New Contributors

Full Changelog: v0.2.0...v0.3.0