pub struct SkillInstallRequest {
pub skill_id: Option<String>,
pub source: Option<String>,
pub source_type: SkillInstallSourceType,
}Expand description
One install request accepted by the future LuaSkills manager entrypoints. 未来 LuaSkills 管理入口接受的单次安装请求定义。
Fields§
§skill_id: Option<String>Optional skill id used for install-by-name flows. 供按名称安装流程使用的可选 skill id。
source: Option<String>Optional raw source string such as URL or local directory. 例如 URL 或本地目录一类的可选原始来源字符串。
source_type: SkillInstallSourceTypeSource type used to interpret the source locator. Defaults to GitHub. 用于解释来源定位值的来源类型,默认使用 GitHub。
Trait Implementations§
Source§impl Clone for SkillInstallRequest
impl Clone for SkillInstallRequest
Source§fn clone(&self) -> SkillInstallRequest
fn clone(&self) -> SkillInstallRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SkillInstallRequest
impl Debug for SkillInstallRequest
Source§impl Default for SkillInstallRequest
impl Default for SkillInstallRequest
Source§fn default() -> SkillInstallRequest
fn default() -> SkillInstallRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SkillInstallRequest
impl<'de> Deserialize<'de> for SkillInstallRequest
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 SkillInstallRequest
impl RefUnwindSafe for SkillInstallRequest
impl Send for SkillInstallRequest
impl Sync for SkillInstallRequest
impl Unpin for SkillInstallRequest
impl UnsafeUnpin for SkillInstallRequest
impl UnwindSafe for SkillInstallRequest
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request