pub struct SupportState {
pub cases: HashMap<String, SupportCase>,
pub refresh_call_counts: HashMap<String, usize>,
/* private fields */
}Fields§
§cases: HashMap<String, SupportCase>§refresh_call_counts: HashMap<String, usize>Tracks how many times each check ID has been refreshed, for cycling statuses.
Implementations§
Source§impl SupportState
impl SupportState
pub fn next_refresh_status(&mut self, check_id: &str) -> &str
Source§impl SupportState
impl SupportState
pub fn create_case( &mut self, subject: &str, communication_body: &str, service_code: Option<&str>, severity_code: Option<&str>, category_code: Option<&str>, cc_email_addresses: Vec<String>, language: Option<&str>, ) -> Result<&SupportCase, SupportError>
pub fn describe_cases( &self, case_id_list: Option<&[String]>, include_resolved: bool, ) -> Vec<&SupportCase>
pub fn resolve_case( &mut self, case_id: Option<&str>, ) -> Result<(String, String), SupportError>
pub fn describe_services( &self, service_code_list: Option<&[String]>, ) -> Vec<SupportService>
Trait Implementations§
Source§impl Debug for SupportState
impl Debug for SupportState
Source§impl Default for SupportState
impl Default for SupportState
Source§fn default() -> SupportState
fn default() -> SupportState
Returns the “default value” for a type. Read more
Source§impl From<&SupportState> for SupportStateView
impl From<&SupportState> for SupportStateView
Source§fn from(state: &SupportState) -> Self
fn from(state: &SupportState) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SupportState
impl RefUnwindSafe for SupportState
impl Send for SupportState
impl Sync for SupportState
impl Unpin for SupportState
impl UnsafeUnpin for SupportState
impl UnwindSafe for SupportState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.