pub struct KnowledgePromotionRequest {
pub item_id: String,
pub target_status: KnowledgeItemStatus,
pub promoted_at_ms: u64,
pub freshness_expires_at_ms: Option<u64>,
pub reviewer_id: Option<String>,
pub approval_id: Option<String>,
pub reason: Option<String>,
}Expand description
Request to promote or retire a knowledge item.
Fields§
§item_id: String§target_status: KnowledgeItemStatus§promoted_at_ms: u64§freshness_expires_at_ms: Option<u64>§reviewer_id: Option<String>§approval_id: Option<String>§reason: Option<String>Trait Implementations§
Source§impl Clone for KnowledgePromotionRequest
impl Clone for KnowledgePromotionRequest
Source§fn clone(&self) -> KnowledgePromotionRequest
fn clone(&self) -> KnowledgePromotionRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KnowledgePromotionRequest
impl Debug for KnowledgePromotionRequest
Source§impl<'de> Deserialize<'de> for KnowledgePromotionRequest
impl<'de> Deserialize<'de> for KnowledgePromotionRequest
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
Auto Trait Implementations§
impl Freeze for KnowledgePromotionRequest
impl RefUnwindSafe for KnowledgePromotionRequest
impl Send for KnowledgePromotionRequest
impl Sync for KnowledgePromotionRequest
impl Unpin for KnowledgePromotionRequest
impl UnsafeUnpin for KnowledgePromotionRequest
impl UnwindSafe for KnowledgePromotionRequest
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