/// Returns the call origin, which is either the message id of the ingress
/// message or the canister id of the canister that sent the initial
/// request.
Returns the call origin, which is either the message id of the ingress
message or the canister id of the canister that sent the initial
request.
Returns the call origin which is either the message id of the ingress message or the canister id of the canister that sent the initial request .
pub fn call_origin(&self, call_context_id: CallContextId) -> Option<CallOrigin> {
        self.call_contexts
            .get(&call_context_id)
            .map(|cc| cc.call_origin.clone())
    }
pub fn call_origin ( & self , call_context_id : CallContextId ) -> Option < CallOrigin > { self . call_contexts . get ( & call_context_id ) . map ( | cc | cc . call_origin . clone ( ) ) }
Returns the call origin, which is either the message id of the ingress
message or the canister id of the canister that sent the initial
request.
Returns the call origin which is either the message id of the ingress message or the canister id of the canister that sent the initial request .
&self
call_context_id
CallContextId