pub struct McpArgs {
pub repo: RepoArgs,
pub inspect: bool,
pub format: OutputFormat,
pub transport: Transport,
pub standalone: bool,
pub http_host: Option<String>,
pub http_port: Option<u16>,
}Expand description
majordomus mcp.
Fields§
§repo: RepoArgsWhere and how the repository is read.
inspect: boolPrint what would be served, and every diagnostic, then exit without serving
format: OutputFormatOutput shape of –inspect
transport: TransportThe transport to serve on
standalone: boolServe this client alone: no shared server, no HTTP, no Swagger UI, no peers, and nothing written anywhere. The default is the shared server (below)
http_host: Option<String>Interface the shared server binds when this process is the one that starts it;
without it, the one MAJORDOMUS_HTTP_HOST names on this machine, and loopback
(127.0.0.1) when that is unset
http_port: Option<u16>Port the shared server binds when this process starts it; without it, the port this checkout derives (8741 for the primary checkout). When it is taken, a free port is used instead and the URL is logged on stderr either way
Trait Implementations§
Source§impl Args for McpArgs
impl Args for McpArgs
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
ArgGroup::id][crate::ArgGroup::id] for this set of argumentsSource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to [
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§impl FromArgMatches for McpArgs
impl FromArgMatches for McpArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for McpArgs
impl RefUnwindSafe for McpArgs
impl Send for McpArgs
impl Sync for McpArgs
impl Unpin for McpArgs
impl UnsafeUnpin for McpArgs
impl UnwindSafe for McpArgs
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