pub struct ServiceLevelPriorityBuilder { /* private fields */ }Expand description
Builder for ServiceLevelPriority entity
Provides a fluent API for constructing ServiceLevelPriority instances. System fields (id, metadata, timestamps) are auto-initialized.
Implementations§
Source§impl ServiceLevelPriorityBuilder
impl ServiceLevelPriorityBuilder
Sourcepub fn priority(self, value: IssuePriority) -> Self
pub fn priority(self, value: IssuePriority) -> Self
Set the priority field (required)
Sourcepub fn response_time_mins(self, value: i32) -> Self
pub fn response_time_mins(self, value: i32) -> Self
Set the response_time_mins field (required)
Sourcepub fn resolution_time_mins(self, value: i32) -> Self
pub fn resolution_time_mins(self, value: i32) -> Self
Set the resolution_time_mins field (required)
Sourcepub fn build(self) -> Result<ServiceLevelPriority, String>
pub fn build(self) -> Result<ServiceLevelPriority, String>
Build the ServiceLevelPriority entity
Returns Err if any required field without a default is missing.
Trait Implementations§
Source§impl Clone for ServiceLevelPriorityBuilder
impl Clone for ServiceLevelPriorityBuilder
Source§impl Debug for ServiceLevelPriorityBuilder
impl Debug for ServiceLevelPriorityBuilder
Auto Trait Implementations§
impl Freeze for ServiceLevelPriorityBuilder
impl RefUnwindSafe for ServiceLevelPriorityBuilder
impl Send for ServiceLevelPriorityBuilder
impl Sync for ServiceLevelPriorityBuilder
impl Unpin for ServiceLevelPriorityBuilder
impl UnsafeUnpin for ServiceLevelPriorityBuilder
impl UnwindSafe for ServiceLevelPriorityBuilder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more