[−][src]Struct ha_api::HomeAssistantAPI
Implementations
impl HomeAssistantAPI
[src]
pub fn new(instance_urls: Vec<String>) -> Self
[src]
pub fn auth_token(
&mut self,
oauth_token: String,
refresh_token: String,
token_expiration: u64
) -> Result<(), Error>
[src]
&mut self,
oauth_token: String,
refresh_token: String,
token_expiration: u64
) -> Result<(), Error>
pub fn auth_authorization_code(
&mut self,
authorization_code: String
) -> Result<(), Error>
[src]
&mut self,
authorization_code: String
) -> Result<(), Error>
pub fn auth_long_lived_token(
&mut self,
long_lived_token: String
) -> Result<(), Error>
[src]
&mut self,
long_lived_token: String
) -> Result<(), Error>
pub fn need_refresh(&self) -> bool
[src]
pub fn refresh_token(&mut self) -> Result<(), Error>
[src]
pub fn register_device(
&mut self,
device_data: DeviceRegistrationRequest
) -> Result<(), Error>
[src]
&mut self,
device_data: DeviceRegistrationRequest
) -> Result<(), Error>
pub fn register_sensor(
&mut self,
sensor_data: SensorRegistrationData
) -> Result<(), Error>
[src]
&mut self,
sensor_data: SensorRegistrationData
) -> Result<(), Error>
pub fn update_sensor(
&mut self,
sensor_data: SensorUpdateData
) -> Result<(), Error>
[src]
&mut self,
sensor_data: SensorUpdateData
) -> Result<(), Error>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for HomeAssistantAPI
impl Send for HomeAssistantAPI
impl Sync for HomeAssistantAPI
impl Unpin for HomeAssistantAPI
impl !UnwindSafe for HomeAssistantAPI
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,