#[non_exhaustive]pub struct MemoryPromoteInput {
pub org: Option<String>,
pub namespace: Option<String>,
pub agent: Option<String>,
pub user_id: Option<String>,
pub session_id: Option<String>,
pub memory_key: String,
pub target_key: Option<Option<String>>,
pub rationale: Option<String>,
pub approver: Option<Option<String>>,
pub reversible_for_days: Option<Integer>,
pub promoted_from_candidate_id: Option<Option<String>>,
pub approved_sha256: Option<Option<String>>,
}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.org: Option<String>§namespace: Option<String>§agent: Option<String>§user_id: Option<String>§session_id: Option<String>§memory_key: String§target_key: Option<Option<String>>§rationale: Option<String>§approver: Option<Option<String>>§reversible_for_days: Option<Integer>§promoted_from_candidate_id: Option<Option<String>>§approved_sha256: Option<Option<String>>Implementations§
Source§impl MemoryPromoteInput
impl MemoryPromoteInput
pub fn new(memory_key: impl Into<String>) -> Self
pub fn org(self, org: impl Into<String>) -> Self
pub fn namespace(self, namespace: impl Into<String>) -> Self
pub fn agent(self, agent: impl Into<String>) -> Self
pub fn user_id(self, user_id: impl Into<String>) -> Self
pub fn session_id(self, session_id: impl Into<String>) -> Self
pub fn target_key(self, target_key: impl Into<String>) -> Self
pub fn target_key_null(self) -> Self
pub fn rationale(self, rationale: impl Into<String>) -> Self
pub fn approver(self, approver: impl Into<String>) -> Self
pub fn approver_null(self) -> Self
pub fn reversible_for_days( self, reversible_for_days: impl Into<Integer>, ) -> Self
pub fn promoted_from_candidate_id( self, promoted_from_candidate_id: impl Into<String>, ) -> Self
pub fn promoted_from_candidate_id_null(self) -> Self
pub fn approved_sha256(self, approved_sha256: impl Into<String>) -> Self
pub fn approved_sha256_null(self) -> Self
pub async fn send( self, client: &Client, options: CallOptions, ) -> Result<CallResult<MemoryPromoteOutput>, CallFailure>
Trait Implementations§
Source§impl Clone for MemoryPromoteInput
impl Clone for MemoryPromoteInput
Source§impl Debug for MemoryPromoteInput
impl Debug for MemoryPromoteInput
Source§impl<'de> Deserialize<'de> for MemoryPromoteInput
impl<'de> Deserialize<'de> for MemoryPromoteInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MemoryPromoteInput
impl PartialEq for MemoryPromoteInput
Source§impl Serialize for MemoryPromoteInput
impl Serialize for MemoryPromoteInput
impl StructuralPartialEq for MemoryPromoteInput
Auto Trait Implementations§
impl Forget for MemoryPromoteInput
impl Freeze for MemoryPromoteInput
impl Move for MemoryPromoteInput
impl RefUnwindSafe for MemoryPromoteInput
impl Send for MemoryPromoteInput
impl Sync for MemoryPromoteInput
impl Unpin for MemoryPromoteInput
impl UnsafeUnpin for MemoryPromoteInput
impl UnwindSafe for MemoryPromoteInput
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