MCPcopy Create free account
hub / github.com/ElementsProject/lightning / new_str_with_default

Method new_str_with_default

plugins/src/options.rs:604–617  ·  view source on GitHub ↗
(
        name: &'a str,
        default: &'a str,
        description: &'a str,
    )

Source from the content-addressed store, hash-verified

602
603impl<'a> DefaultStringConfigOption<'a> {
604 pub const fn new_str_with_default(
605 name: &'a str,
606 default: &'a str,
607 description: &'a str,
608 ) -> Self {
609 Self {
610 name: name,
611 default: default,
612 description: description,
613 deprecated: false,
614 dynamic: false,
615 multi: false,
616 }
617 }
618 pub fn dynamic(mut self) -> Self {
619 self.dynamic = true;
620 self

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected