#[non_exhaustive]pub struct NewRequest {
pub id: Option<String>,
pub action: String,
pub effect_digest: String,
pub account: Option<String>,
pub client: Option<String>,
pub requester: String,
pub ttl_ms: Option<u64>,
pub approvers: BTreeSet<String>,
pub detail: String,
}Expand description
A request to create.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: Option<String>§action: String§effect_digest: String§account: Option<String>§client: Option<String>§requester: String§ttl_ms: Option<u64>§approvers: BTreeSet<String>§detail: StringImplementations§
Source§impl NewRequest
impl NewRequest
pub fn new( action: impl Into<String>, effect_digest: impl Into<String>, requester: impl Into<String>, ) -> Self
Sourcepub fn id(self, id: impl Into<String>) -> Self
pub fn id(self, id: impl Into<String>) -> Self
Use the app’s own request id (Pulse’s engine request id) instead of a generated one.
pub fn account(self, account: impl Into<String>) -> Self
pub fn client(self, client: impl Into<String>) -> Self
pub fn ttl_ms(self, ttl_ms: u64) -> Self
pub fn approvers<I, S>(self, approvers: I) -> Self
pub fn detail(self, detail: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for NewRequest
impl Clone for NewRequest
Auto Trait Implementations§
impl Freeze for NewRequest
impl RefUnwindSafe for NewRequest
impl Send for NewRequest
impl Sync for NewRequest
impl Unpin for NewRequest
impl UnsafeUnpin for NewRequest
impl UnwindSafe for NewRequest
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